- Developers
- Sygic Maps API
- Routing API
- Toll Cost API extension
Request
This API is an extension to Routing API. To enable toll costs, you have to add this paramter into your standard routing request with paramter "tollcosts" true.
Parameter | Data type | Default | Value | Description |
tollcosts | boolean | false | true false |
Toll costs calculation will be performed on calculated route. When using vehicle_type set to either truck, camper or garbagetruck the attributes are considered. LINK: sygic.com/developers/maps-api-services/routing-api/routing#truck NOTE: This service is available only with HERE map license. |
Response
"costs": {
"toll_costs": {
"total_cost": {
"amount_in_target_currency": 3.44
},
"costs_by_toll_system": [
{
"name": "TOLL COLLECT GMBH",
"amount_in_target_currency": 3.44
}
],
"costs_by_country": [
{
"country": "DEU",
"amount_in_target_currency": 3.44
}
]
},
"currency": "EUR"
}
- Previous article: Routing
- Next article: Distance Matrix