Truck Routing and Toll Cost Calculation for Romania - here-api

I have the following request :
https://tce.cit.api.here.com/2/calculateroute.json?mode=fastest;truck;traffic:disabled&departure=now&avoidseasonalclosures=true&cost_optimize=1&metricsystem=metric&truckRestrictionPenalty=soft&driver_cost=15&vehicle_cost=0.85&currency=EUR&vehicletype=diesel,24&truckType=tractorTruck&tollVehicleType=3&hybrid=0&emissionType=6&passengersCount=1&commercial=1&trailerType=2&trailersCount=1&vehicleNumberAxles=2&trailerNumberAxles=3&tiresCount=12&height=4.0m&width=2.50m&length=16.5m&heightAbove1stAxle=3.5m&trailerHeight=4.0m&vehicleWeight=12.0t&limitedWeight=40.0t&weightPerAxle=10.0t&maneuverAttributes=none&combineChange=true&routeAttributes=none,no,wp,lg&legAttributes=none,li,sh&linkAttributes=none,fl,le&detail=1&alternatives=1&rollup=none,total,country&jsonattributes=41&waypoint0=geo!stopOver!47.05185,21.93873;;6,7,2,8,9,10&waypoint1=geo!stopOver!44.85142,24.87989;;6,7,2,8,9,10&app_id=APPID&app_code=APPCODE
The resulting route is a bad one.
The restrictions for trucks are not there on the real roads.
The correct route is given by the following request :
https://route.cit.api.here.com/routing/7.2/calculateroute.json?app_id=APPID&app_code=APPCODE&mode=fastest;car;traffic:disabled&departure=now&avoidseasonalclosures=true&metricsystem=metric&truckRestrictionPenalty=soft&trailersCount=1&height=4.0&width=2.50&length=16.5&limitedWeight=40.0&weightPerAxle=10.0&maneuverAttributes=none&combineChange=true&routeattributes=none,no,wp,lg,summary&linkattributes=none,fl,le&legattributes=none,li,sh&detail=1&alternatives=1&jsonattributes=41&waypoint0=geo!stopOver!47.05185,21.93873;;6,7,2,8,9,10&waypoint1=geo!stopOver!44.85142,24.87989;;6,7,2,8,9,10
Also the toll cost returned by both requests are wrong.
The returned value for one day is 11 RON and the amount in target currency is 2.36 EUR.
The correct value for one day is 11 EUR.
The bridge costs are correct.
Where can i report problems regarding the toll cost calculation and the truck restrictions ?
There is a request to get the list of truck restrictions on a route ?
The toll costs values are returned with VAT or without VAT. Can i get both values ? (with and without VAT)

The toll costs currencies are displayed correctly now. Please comment if you still see issues. stackoverflow.com/questions/50911406/toll-cost-vat-here-api

Related

Here Maps Telematics TOLLS API - specifying roundtrip

I am working with Telematics API https://fleet.ls.hereapi.com/2/calculateroute.json to calculate the toll costs. Can I please ask if anyone has used or aware if there is a special parameter to denote one way or round trip. I am using waypoints to represent round trip as in waypoint0 = source, waypoint1=destination, waypoint2=source to represent my round trip. The values returned are high compared to the ones indicated by local teams who use that toll regularly
As example 59.9133301,10.7389701 -> 60.6244351,11.3831208 -> 59.9133301,10.7389701 shows 816 NOK but real value is only 660. A one way from 59.9133301,10.7389701 -> 60.6244351,11.3831208 shows 340 NOK which may be right
So is there another way on API to ask for toll cost combined for both directions?
Thank you for your assistance
Please share you complete request. I am unable to reproduce the issue.
You can refer to these example request:
Round Trip request :
https://fleet.ls.hereapi.com/2/calculateroute.json?jsonAttributes=41&waypoint0=59.9133301,10.7389701&detail=1&waypoint1=60.6244351,11.3831208&waypoint2=59.9133301,10.7389701&maneuverAttributes=none&linkAttributes=none,sh&legAttributes=none,li&currency=NOK&departure=&tollVehicleType=2&trailerType=0&trailersCount=0&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&fuelType=petrol&height=1.67m&trailerHeight=0&vehicleWeight=1739&limitedWeight=1.739t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=2&tiresCount=4&commercial=0&heightAbove1stAxle=1m&width=1.8m&length=4.41m&mode=fastest;car;traffic:disabled&rollups=none,country;tollsys&&tollPass=transponder&apikey=<apikey>&jsoncallback=parseRouting
Result TollCost: 244.8
One way request :
https://fleet.ls.hereapi.com/2/calculateroute.json?jsonAttributes=41&waypoint0=59.9133301,10.7389701&detail=1&waypoint1=60.62544,11.37563&maneuverAttributes=none&linkAttributes=none,sh&legAttributes=none,li&currency=NOK&departure=&tollVehicleType=2&trailerType=0&trailersCount=0&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&fuelType=petrol&height=1.67m&trailerHeight=0&vehicleWeight=1739&limitedWeight=1.739t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=2&tiresCount=4&commercial=0&heightAbove1stAxle=1m&width=1.8m&length=4.41m&mode=fastest;car;traffic:disabled&rollups=none,country;tollsys&&tollPass=transponder&apikey=<apikey>&jsoncallback=parseRoutingResponse
Result toll cost 113.6
Back to source
https://fleet.ls.hereapi.com/2/calculateroute.json?jsonAttributes=41&detail=1&waypoint0=60.6244351,11.3831208&waypoint1=59.9133301,10.7389701&maneuverAttributes=none&linkAttributes=none,sh&legAttributes=none,li&currency=NOK&departure=&tollVehicleType=2&trailerType=0&trailersCount=0&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&fuelType=petrol&height=1.67m&trailerHeight=0&vehicleWeight=1739&limitedWeight=1.739t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=2&tiresCount=4&commercial=0&heightAbove1stAxle=1m&width=1.8m&length=4.41m&mode=fastest;car;traffic:disabled&rollups=none,country;tollsys&&tollPass=transponder&apikey=<apikey>&jsoncallback=parseRoutingResponse
Result tollcost 131.2
Toll cost of route (1) = toll cost of route (2+3)

Big difference in the cost of paying the round trip

The route from 46.371399% 2C2.569599 to 50.53027% 2C9.68613 costs 254.4 euros in France, and 74.2 euros back in France. Why such difference?
254.4 euros
https://fleet.ls.hereapi.com/2/calculateroute.json?xnlp=jsonAttributes%3D41&app_id=&app_code=&apikey=&mode=truck%3Bfastest%3Btraffic%3Adisabled&language=en-GB&representation=overview&metricSystem=metric&routeattributes=wp%2Csc%2Csm%2Csh%2Cbb%2Clg%2Cno%2Cshape&legattributes=wp%2Cmn%2Cli%2Cle%2Ctt&maneuverattributes=po%2Csh%2Ctt%2Cle%2Cti%2Cli%2Cpt%2Cpl%2Crn%2Cnr%2Cdi&linkattributes=sh%2Cle%2Csl%2Cds%2Ctr&instructionformat=html&trailersCount=0&alternatives=0&currency=EUR&trailerType=2&vehicleNumberAxles=2&trailerNumberAxles=3&hybrid=0&height=4m&trailerHeight=400&vehicleWeight=8000&limitedWeight=40t&width=225&length=16.5m&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&commercial=1&heightAbove1stAxle=300&fuelType=Diesel&detail=1&rollup=none%2Ccountry%3Btollsys&requestId=1631897604381&excludeCountries=CHE&truckRestrictionPenalty=strict&emissionType=6&shippedhazardousgoods=0&waypoint0=geo!46.371399%2C2.569599&waypoint1=geo!50.53027%2C9.68613&jsoncallback=H.service.jsonp.handleResponse(17)
74.2 euros
https://fleet.ls.hereapi.com/2/calculateroute.json?xnlp=jsonAttributes%3D41&app_id=&app_code=&apikey=&mode=truck%3Bfastest%3Btraffic%3Adisabled&language=en-GB&representation=overview&metricSystem=metric&routeattributes=wp%2Csc%2Csm%2Csh%2Cbb%2Clg%2Cno%2Cshape&legattributes=wp%2Cmn%2Cli%2Cle%2Ctt&maneuverattributes=po%2Csh%2Ctt%2Cle%2Cti%2Cli%2Cpt%2Cpl%2Crn%2Cnr%2Cdi&linkattributes=sh%2Cle%2Csl%2Cds%2Ctr&instructionformat=html&trailersCount=0&alternatives=0&currency=EUR&trailerType=2&vehicleNumberAxles=2&trailerNumberAxles=3&hybrid=0&height=4m&trailerHeight=400&vehicleWeight=8000&limitedWeight=40t&width=225&length=16.5m&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&commercial=1&heightAbove1stAxle=300&fuelType=Diesel&detail=1&rollup=none%2Ccountry%3Btollsys&requestId=1631897604381&excludeCountries=CHE&truckRestrictionPenalty=strict&emissionType=6&shippedhazardousgoods=0&waypoint1=geo!46.371399%2C2.569599&waypoint0=geo!50.53027%2C9.68613&jsoncallback=H.service.jsonp.handleResponse(17)
On the way forward, the route uses the paid highway section from "Montluçon" to "Saint-Maurice", which costs 244.20€ according to the HERE API, for trucks matching specified input parameters.
According to the current pricesheet from the French highway operator APRR, this section costs indeed 244.20€. See page 177, vehicle column Class 4. Therefore the high amount is not a data error.
The high difference comes from the fact that on the way back, the route exits the paid section much earlier at "Chalon-Sud", so the section to pay is "Saint-Maurice" to "Chalon-Sud", which costs 64€ for Class 4 vehicles.

HERE Toll cost calculation information missing

I am trying to implement a route calculator with the HERE API. I should show the toll costs of the given route for the user. However, I have some questions, I could not find any answer in the documentation for:
Are the given toll costs net value, i.e. is VAT included or not? Based on my test requests, it looks like there are some countries where VAT is included, and it is excluded in others. Are there any arguments in the result from HERE providing information on this?
One can specify the currency in which the costs are calculated, but I could not find any information on the exchange rates applied. I would like to show this also for the user. Is it possible to get this in the result, too? Or maybe is the source of this data public?
As the toll costs and the toll roads may change over time, I would like to also show the time of data for the user. Is there any argument for this given back by HERE in the result?
I assume you are using the HERE Fleet Telematics API.
VAT is expected to always be included. No, there is no such argument in the API.
No, you cannot get this information in the results. The only trick I can suggest, is to make 2 consecutive calls to the API, one using the first currency and another one using the second currency, and therefore derive from these results the applied exchange rate.
There's no such argument. You should assume that HERE's toll cost data is always fresh.
Toll cost calculation is provided via Here Fleet Telematics API.
Total toll cost includes the VAT
And as per the documentation the below details can be retrieved.
In addition, toll cost detail can be requested on different levels, using the "rollups" parameter:
a. total summary only
b. cost per road link
c. cost per country
d. cost per toll system
Exchange rates are not provided rather currency can be provided.
There is no history of route calculation provided , all the data that are provided are latest.

Ignore restrictions for truck over 20 ton

I use same request http://fleet.api.here.com/2/calculateroute.json?app_id={app_id}&app_code={app_code}&mode=truck;fastest;traffic:disabled&language=en-GB&representation=overview&metricSystem=metric&routeattributes=wp,sc,sm,sh,bb,lg,no,shape&legattributes=wp,mn,li,le,tt&maneuverattributes=po,sh,tt,le,ti,li,pt,pl,rn,nr,di&linkattributes=sh,le,sl,ds,tr&trailersCount=0&alternatives=0&currency=EUR&trailerType=2&vehicleNumberAxles=2&trailerNumberAxles=3&hybrid=0&height=4m&trailerHeight=400&vehicleWeight=8000&limitedWeight=20t&width=225&length=3&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&commercial=1&heightAbove1stAxle=300&fuelType=Diesel&detail=1&rollup=none,country;tollsys&emissionType=5&shippedhazardousgoods=0&waypoint0=geo!41.3260846,2.1408677&waypoint1=geo!41.3566442,2.0946016
How can I get route and cost of road avoiding of restrictions for truck with weight over 20t?
Thank for help.
Firstly, please use the latest URL for the request.https://fleet.ls.hereapi.com/2/calculateroute.json?apikey={{RESTapiKey}}...
If you want to avoid restrictions for trucks, add the parameter truckRestrictionPenalty and set the value to soft.
The route violating truck restrictions is indicated in the response with dedicated route and maneuver notes. The route with the note of the type violation and the text truckRestriction may be traveled at your own responsibility. While driving on such route, extra care has to be taken as it may result in a vehicle or a road infrastructure damage.

Toll Cost VAT HERE API

I have two routes in Italy.
Gad-Oulx - Genova. The toll cost returned is 58.70 EUR without VAT.
https://tce.cit.api.here.com/2/calculateroute.json?mode=fastest;truck;traffic:disabled&departure=now&avoidseasonalclosures=true&cost_optimize=1&metricsystem=metric&truckRestrictionPenalty=soft&driver_cost=15&vehicle_cost=0.85&currency=EUR&vehicletype=diesel,24&truckType=tractorTruck&tollVehicleType=3&hybrid=0&emissionType=6&passengersCount=1&commercial=1&trailerType=2&trailersCount=1&vehicleNumberAxles=2&trailerNumberAxles=3&tiresCount=12&height=4.0m&width=2.50m&length=16.5m&heightAbove1stAxle=3.5m&trailerHeight=4.0m&vehicleWeight=12.0t&limitedWeight=40.0t&weightPerAxle=10.0t&maneuverAttributes=none&combineChange=true&routeAttributes=none,no,wp,lg&legAttributes=none,li,sh&linkAttributes=none,fl,le&detail=1&alternatives=1&rollup=none,total,country&jsonattributes=41&waypoint0=geo!stopOver!45.04354,6.84545;;6,7,2,8,9,10&waypoint1=geo!stopOver!44.4104,8.93898;;6,7,2,8,9,10&app_id=APPID&app_code=APPCODE
Brennero - Bologna. The toll cost returned is 63.10 EUR with VAT.
https://tce.cit.api.here.com/2/calculateroute.json?mode=fastest;truck;traffic:disabled&departure=now&avoidseasonalclosures=true&cost_optimize=1&metricsystem=metric&truckRestrictionPenalty=soft&driver_cost=15&vehicle_cost=0.85&currency=EUR&vehicletype=diesel,24&truckType=tractorTruck&tollVehicleType=3&hybrid=0&emissionType=6&passengersCount=1&commercial=1&trailerType=2&trailersCount=1&vehicleNumberAxles=2&trailerNumberAxles=3&tiresCount=12&height=4.0m&width=2.50m&length=16.5m&heightAbove1stAxle=3.5m&trailerHeight=4.0m&vehicleWeight=12.0t&limitedWeight=40.0t&weightPerAxle=10.0t&maneuverAttributes=none&combineChange=true&routeAttributes=none,no,wp,lg&legAttributes=none,li,sh&linkAttributes=none,fl,le&detail=1&alternatives=1&rollup=none,total,country&jsonattributes=41&waypoint0=geo!stopOver!47.00142,11.50413;;6,7,2,8,9,10&waypoint1=geo!stopOver!44.50483,11.34519;;6,7,2,8,9,10&app_id=APPID&app_code=APPCODE
There is a way to get a flag to determine if the returned value contains or not the VAT ?
It totally depends on the region whether VAT is applied or not. Here toll costs represents the total toll amount and do not provide information on whether vat is inclusive.

Resources