Arrive on Curbside
Products Used: Directions API & Navigation API
Users can use the approaches
feature in NextBillion.ai’s routing APIs to enforce the approach to always be on the curbside or the driving side. This prevents trucks from being stranded on the opposite lane after reaching an intermediate waypoint or the destination hence saving time and providing better routing experience. Depending on the type of request, the routing engine will either suggest a route which arrives at all the stops from curbside or it provides a route along with turn-by-turn instructions for easy navigation. Use the approaches
parameter in the routing APIs to enforce approach preference for your trip.
Let’s take a look at the following sample request with
-
A pair of
origin
&destination
locations -
mode
option set totruck
-
waypoints
parameter containing coordinates for 3 stops before thedestination
-
approaches
parameter containing preference for all stops
Directions API request:
Directions API response
Navigation API request
In order to navigate easily from one stop to another, user can get turn-by-turn restrictions as well through a Navigation API request:
Navigation API response
Visit product documentation (Directions API | Navigation API) to know more about the available features