Routing for hazardous material
Products Used: Directions API & Navigation API
NextBillion.aiโs routing APIs also take into account the kind of material your vehicles are transporting. Use the โhazmat_typeโ parameter to describe the type of hazardous material that is being carried and the routing engine will only suggest the routes that are suitable for the vehicle to pass through. This feature ensures that the vehicle takes only the safe and legal routes to the destination.
Letโs take a look at the following request which makes use of
- An โoriginโ and โdestinationโ for the trip
- โmodeโ option set to โtruckโ
- โoptionโ attribute set to โflexibleโ
- โhazmat_typeโ indicating one of the recognized hazardous material types
Directions API request
Directions API response
Notice that if the โhazmat_typeโ configuration is removed from the input request the route suggested for a general truck is quite shorter than what is safe for a truck carrying hazardous material.
Navigation API request
Letโs take a look at how a Navigation API call would look like for the exact same parameters as the above example.
Navigation API response
Visit product documentation (Directions API | Navigation API) to know more about the available features.