Basic Directions Flexible - POST Request

Implement Using: Directions Flexible API

Let’s see how to build a POST method request for Directions Flexible API for the same scenario from the trips in future example.

Request

1
curl --location 'https://api.nextbillion.io/directions/json?key=<your_api_key>&option=flexible' --header 'Content-Type: application/json'
2
--data '{...}'

Response

1
{
2
"status": "Ok",
3
"routes": [...]
4
}

© 2024 NextBillion.ai all rights reserved.