Suport for road restrictions and hazmat

Hello everyone,

I read the documentation of Android SDK routing API and found no reference to road restrictions (like avoiding tunnels for example) and to load type (like hazard materials).

Can anyone tell me if Android SDK has suport for this kind of stuff?

Avoids are described here: https://developer.tomtom.com/maps-android-sdk/route-avoids-1
Hazard materials can be provided by using withVehicleLoadType.
Docs here: https://d221h2fa9j1k6s.cloudfront.net/downloads/mapssdk/APIReferences/JavaDocRouting_2.4.537/com.tomtom.online.sdk.data/-common-params/with-vehicle-load-type.html

3 Likes

Hi there !

This article might provide useful info on building route planning apps for trucks. https://developer.tomtom.com/blog/build-different/how-schedule-routing-truck-drivers

The Routing engine can take different parameters into account when vehicle type Truck is selected: type of cargo, vehicle dimensions, weight, etc. Based on this input it will try to calculate a safe and compliant route for that vehicle. It will avoid bridges and tunnels that do not fit this vehicle, roads with restrictions for vehicle or cargo types. It will also try to minimize manoeuvers that are complex for large vehicles, such as sharp turns or narrow roads. In some cases this can result in a route that is very different than that of a normal passenger car.

You might also want to try the Eco mode in routing, which is designed to find fuel-efficient routes.