Retrieve Optimized Routes

Use the following API request to retrieve optimized route plans using the unique job ID created in the POST request.

API Request

Fetch the results using the GET request.

1
curl --request GET \
2
--url 'https://api.nextbillion.io/optimization/v2/result?id=<id>&key=<nextbillion_api_key>'

API Response

The response will contain the optimized route details.

1
{
2
"result": {
3
"code": 0,
4
"summary": "{...}",
5
"unassigned": "[...]",
6
"routes": "[...]"
7
},
8
"status": "Ok",
9
"message": ""
10
}

The optimized route can be visualized using the NextBillion.ai’s Route Planner Web App available in NextBillion.ai Cloud Console.

The following image visualizes the optimized routes in the Route Planner Web App interface.

documentation image

© 2024 NextBillion.ai all rights reserved.