API Overview
Our API provides real-time data to help you manage your services effectively.
NOTE : Making more than 25 API Calls per minuter will lead to block the API Key.
API Endpoints
Get Estimated Travel Time Data
Use this endpoint to retrieve the estimated Travel Time for a specific source and destination.
GET /travel-time-insights?sourceLocation={lat},{lon}&destinationLocation={lat},{lon}&timeToLeave={time_to_leave}&city={city_name}
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
sourceLocation | Yes | string | Source location in the format "lat,lon" (latitude,longitude) |
destinationLocation | Yes | string | Destination location in the format "lat,lon" (latitude,longitude) |
timeToLeave | Optional | number | Time to leave in milliseconds (if not provided then the current time will be used) |
city | Optional | string | City name (e.g., Bengaluru, if not provided then the api call make take more time ) |
Request API Example
https://api.moveinsync.com/travel-time-insights?sourceLocation=12.915193%2C%2077.644747&destinationLocation=12.915193%2C%2077.644747&timeToLeave=1724618521000&city=Bengaluru
Response Example
{ "status": "SUCCESS", "statusCode": 200, "message": "OK", "desc": null, "debug": null, "exception": null, "data": { "requestedData": { "time": "2024-09-30T09:00:00.000+0000", "estimatedTravelTime": 68, "confidenceScore": "High", "trafficProbability": 0, "rangeOfDelay": 0 }, "suggestedData": { "time": "2024-09-29T23:30:00.000+0000", "estimatedTravelTime": 36, "confidenceScore": "High", "trafficProbability": 0, "rangeOfDelay": 0 } } }
Error Codes
Code | Message | Description |
---|---|---|
401 | Unauthorized | API key is missing or invalid |
404 | Not Found | The requested resource could not be found |