HERE maps adjust truck profile - here-api

Is there a documentation that describes how I can change the truck speed/general profile?
I understand, I can add information to my request, e.g., 'fastest;truck;traffic:enabled&limitedWeight=...&width=...&length=...'
But I couldn't find a documentation regarding changing the speed profile of a truck. Also it would come in handy if this profile would be a xml file that I can adjust and connect to my request.

For Routing API V8, there is no dedicated parameter to change the speed profile of a truck routing. The internal speed profile is calculated based on the truck's gross weight parameter, e.g., truck[grossWeight]=4500.
Based on the weight, one of the following speed profile will be selected.
Light: weight <= 7.5t
Medium: 7.5t < weight <= 18t
Heavy: 18t < weight

Related

HERE Maps - truck restrictions

I'm using the Here API to calculate routes for trucks with 40t. Using the HERE devtools, i got the same error of my APP. The answer is "The API can't calculate the route because of illegal access". I checked the map (image attached) and in the street where my journey will start, with a difference of some meters, it exists two limitations 12t and 18t. The street is one way... If you see the satellite image exists several trucks... The company is testing the software says the trucks goes their...
Can some help me on this?
https://fleet.api.here.com/2/calculateroute.json?waypoint0=41.325299,2.141551&waypoint1=stopOver,3600!41.3291843,2.0317197&waypoint2=stopOver,3600!40.91260530,-8.42291420&waypoint3=38.855951,-9.104382&mode=fastest;truck;traffic:enabled&departure=2020-08-19T02:57:58&alternatives=0&weightPerAxle=14t&limitedWeight=40t&height=4m&width=2.55m&length=16.5m&trailersCount=
If you want to ignore the restrictions for trucks in the route, add the parameter truckRestrictionPenalty and set the value to soft.
The route violating truck restrictions is indicated in the response with dedicated route and manoeuvre notes. The route with the note of the type violation and the text truckRestriction may be travelled at your own responsibility. While driving on such a route, extra care has to be taken as it may result in a vehicle or road infrastructure damage.
You can read more about the parameter here.
Thanks for your feedback, but we are using the Fleet Telematics Api not the Routing API. Using your info, We researched a litle more and we found the equivalent parameter: ignoreWaypointVehicleRestriction.
We added these params &ignoreWaypointVehicleRestriction=5000;0;all and the API returned the route with the warning.
Thanks,

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.

Calculate route for heavy truck

When I use heavy truck (limitedWeight > 18tons) options I can't get route for road. I don't see any restrictions for that road.
This is a sample link with heavy truck calculate route https://fleet.api.here.com/2/calculateroute.json?waypoint0=49.624139,20.722449&waypoint1=49.623984,20.726724&mode=fastest;truck;traffic:disabled&alternatives=3&weightPerAxle=8t&limitedWeight=18t&height=4m&width=2.55m&length=18m&trailersCount=1
If I change limitedWeight (to e.g. 15t) then the route is calculated.
This is the exact setup:
Start: 49.624139, 20.722449
Destination: 49.623984, 20.726724
Traffic is disabled for route calculation
TrailersCount = set to 1
Truck dimensions were tested both with very small values and with real values
It is a problem of HERE's data? or I will must change parameters?
Remember that an API will never have inconsistent data, and in fact you searched for the Fleet API with the intuition to place restrictions on your route. The problem you are experiencing is the following, "the maximum weight for circulation on this road has been carried out", that is, how will it return a result if you passed the correct restrictions to him? What you can do is put the alternative routes, this way it will return the second best result based on your restrictions.
NOTE: This was meant to be a comment, but I can't do it because of the reputation

Can I request a truck route with a maximum gradient or elevation change?

I am setting up a routing service specific to certain types of trucks. I have been searching the HERE documentation for a way to specify a maximum gradient for the route, but cannot seem to find such a function. Am I missing something? Is this possible? My users indicate that 5% is a good threshold for certain trucks.
Fleet Telematics API provides you the capability to handle such situation. PDE layer supports slope information in ADAS_ATTRIB_FCn. Below are some methods to achieve the above ask. You can pick any of the suggested ways depending on your usecase. Hope you find it useful.
Set fuel consumption on slope to very high number – calculateroute.json method provides a requestParameter “customConsumptionDetails” in which the slope value could be set very high number that the route calculation tries to avoid such routes. Refer https://cle.api.here.com/swagger-ui.html?app_code=xxxx&app_id=xxxx#!/Routing_%26_Route_Matching/calculateRouteUsingGET
Request for adas attributes and avoid slope links - Set requestParamater “attributes=ADAS_ATTRIB_FCn (SLOPES)” and get adas layer. Determine the links you would want to traverse and trigger same query setting “avoidLinks” requestParameter. Refer https://cle.api.here.com/swagger-ui.html?app_code=xxxx&app_id=xxxx#!/Routing_%26_Route_Matching/calculateRouteUsingGET. Also https://tcs.ext.here.com/pde/layer?region=WEU&release=18144&url_root=pde.api.here.com&layer=ADAS_ATTRIB_FC1 for explanation on ADAS attributes.
Add custom overlay – This method is used widely by our current customers. You can add a custom layer on top of Here Map layers where you can avoid links/roads where your trucks should pass through. Read more on overlays - https://developer.here.com/documentation/custom-routing-extension/topics/resource-overlay.html

Here API Routing - Avoid unpaved roads

can anyone write how to avoid unpaved roads in Here routing (or truck routing) in REST API? I have checked API and I couldn't find answer. Routing API routes cars or trucks via dirty roads, what is unaccepted.
RouteFeatureType:The routing features can be used to define special conditions on the calculated route. The user can weight each feature with non-positive weights.
Possible paramers are: tollroad, motorway, boatFerry, railFerry, tunnel, dirtRoad,
park.
The Feature weights are used to define weighted conditions on special route features like tollroad,
motorways, etc.
-3 strictExclude The routing engine guarantees that the route does not contain strictly
excluded features. If the condition cannot be fulfilled no route is returned.
-2 softExclude The routing engine does not consider links containing the corresponding
feature. If no route can be found because of these limitations the condition is weakened.
-1 avoid The routing engine assigns penalties for links containing the corresponding
feature.
0 normal The routing engine does not alter the ranking of links containing the
corresponding feature.
Of course does the map content play also a huge role here. It is needed for the routing that the attribution e.g. for a dirt road (unpaved road segment) is set correctly.
You can also check details and report issues here: https://mapcreator.here.com

Resources