Route Report API
Introduction
NextBillion.ai’s Route Report API is a useful service to get a comprehensive report of a trip. Users can provide the geometry of the desired route or trip and then get details like duration, distance covered during the trip - broken down by state, country, road class along with maximum speeds on the road segments forming the route. The service also informs if the route has any tolls, bridges, tunnels or roundabout maneuvers along it. The service is useful for comparing routes, computing drive mileage and estimating associated metrics as per your business needs.
A valid Route Report request can be submitted using an HTTPS POST method containing the desired route geometry and its encoding type through a request body.
Request Parameters
Loading..Request Body
Loading..Response Schema
Loading..Example
Let’s request a report and other stats for a trip made across multiple states by providing a sample route geometry.
Sample API Request
Sample API Response
API Query Limits
-
Route geometries generated from sources other than NextBillion.ai services, are not supported in this version.
-
Using geometries generated from “Fast” NextBillion.ai services might lead to discrepancies in distance and duration results in Route Report’s output. It is recommended to source route geometries from “Flexible” Nextbillion.ai services.
-
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.