Toll Cost Extension API Developer's Guide

Cost-Optimized Route

User Story

The user, a logistic company, wants to retrieve the cheapest route between Paris and Le Havre in France, for a truck that has a total weight of 40 tons.


The parameter tollVehicleType and limitedWeight define the type of vehicle, as do the remaining vehicle specification parameters. The parameters waypoint0 and waypoint1 define the route.


The response to the request contains the following information blocks:
  • the cheapest route calculated based on the parameter values specified in the GET request
  • the toll cost details of the calculated route
  • metadata about the information used in determining the route
  response: {
    metaInfo: {
      timestamp: "2015-09-18T07:57:13Z",
      mapVersion: "",
      moduleVersion: "",
      interfaceVersion: "2.6.15"
    route: [
        waypoint: [...],
        mode: {...},
        leg: [...],
        summary: {...}
    language: "en-us"
  errors: [ ],
  warnings: [ ],
  onError: false,
  cost: {
    totalCost: 210.87,
    currency: "EUR",
    details: {
      driverCost: "39.62",
      vehicleCost: "136.55",
      tollCost: "34.7"
  tollCost: {
    routeTollItems: [
        linkIds: ...,
        tollType: ...,

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on