Legal routes for a given truck weight
Implement Using: Directions Flexible API
Directions Flexible API allows configuring the truck weight when making a request so that the routes returned are safe and legal for the given route to travel on. truck_weight
parameter is used to eliminate routes which pass through roads with an allowed weight threshold lower than the given weight. For this request, we configure:
origin
&destination
to to denote the starting and end locations of the tripmode
set to “truck” to get a route which a car can taketruck_weight
parameter set with the actual weight of the truckoption
set to “flexible”