Reputation: 11
I am trying to calculate toll costs using HERE API https://tce.api.here.com/2/tollcost.json but I don't want to use link id's. I only want to use GPS coordinates to map the path and find all of the toll costs that would be associated. So far it looks like I need to use link id's? If this is not the case can someone provide an example of the route value that is needed?
Upvotes: 0
Views: 181
Reputation:
Using our Fleet Telematics API, you can get the total toll cost between/along a set of GPS coordinates (waypoints).
This example (insert your and ) will return the total toll cost along the whole route:
https://fleet.api.here.com/2/calculateroute.json?mode=fastest;truck;traffic:disabled¤cy=EUR&rollups=total&waypoint0=52.51,13.42&waypoint1=45.747353,11.733903&tollVehicleType=3&app_id=<app_id>&app_code=<app_code>&routeMatch=1
You can also get details of the toll cost per country or per link ID if necessary using the rollups
parameter.
Upvotes: 1