Optimization API
Introduction
Nextbillion.ai Optimization API computes and returns an optimized route between an origin and destination which have multiple stop points in between. With NextBillion.ai's Route Optimization API you get.
-
Optimized routing between way points
-
Highly accurate ETAs with customized routes
-
Roundtrip optimization with customized destinations
A list of all parameters is specified in the next section.
Parameters
Loading..Response Schema
Loading..Query Limits
Nextbillion.ai allows a maximum rate limit of 6000 queries per minute or 100 queries/second for continuous requests.
Note: We can increase the quota if needed on request. Contact [email protected] for more details.
Examples
Sample API Request
For the above example, here are the parameters we have used-
-
We have set 3 coordinates separated by pipe symbol.
-
We have set the destination property equal to last. This means that the last coordinate in our given list will be treated as the destination.
-
The source property is set to first, so the first coordinate pair in the coordinates object will be treated as the source.
-
We have set mode as 4w which will return a route pertaining to 4 wheelers only.
-
The roundtrip property is set to false, so there will be no roundtrip returned.
-
By setting the with_geometry property as true, we will ensure that the route geometry is returned for each leg of the journey.