Source and Destination
Generally, when you request our API to book a trip, we expect you to send two required fields, the source and destination object. However, getting the source and destination object requires the latitude, longitude and state of a precise location. Our API fetches latitude and longitude from Google Maps API services, using Place Autocomplete API to find the latitude and longitude of a location. Since the API requires this information, you can fetch the data yourself from any third-party service.
{
"source": {
"address": "Ikoyi",
"latitude": 6.4500,
"longitude": 3.4333,
"state": "Lagos"
},
"destination": {
"address": "Ikoyi",
"latitude": 6.4500,
"longitude": 3.4333,
"state": "Lagos",
"stops": {
"number": 0,
"stopovers": []
}
},
...
}
Last updated