GuidesAPI Reference
Guides

Get total toll cost with vignette price

The driver doesn't have all vignettes that the specified route requires. The following doesn't specify tolls[vignettes]=all as in the Get total toll cost without vignette price tutorial.

📘

Note

Requesting toll cost information for routes counts as an additional transaction.

curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=49.03392,10.601304&'\
'destination=44.505213,11.229968&'\
'return=polyline,summary,tolls&'\
'currency=Eur&'\
'spans=tollSystems&'\
'transportMode=car&'\
'tolls[summaries]=total&'\
'apiKey=YOUR_API_KEY'

As the request didn't specify [vignettes]=all, the response includes the lowest vignette price applicable for the vignette section.

"summary": {
  "duration": 26902,
  "length": 674821,
  "baseDuration": 26085,
  "tolls": {
    "total": {
      "type": "value",
      "currency": "EUR",
      "value": 45.9
    }
  }
}

Related information