Route distance
Introduction
Route Distance API provides distances between specified origin and destination coordinates, supporting various modes such as driving, walking, or bicycling.
API details
Endpoint
POST https://api.signzy.app/api/v3/geocoding/findRouteDistancePOST https://api-preproduction.signzy.app/api/v3/geocoding/findRouteDistanceRequest body parameters
Parameter | Data Type | Description | Required |
|---|---|---|---|
origin | Object | Object containing latitude and longitude of the starting point | Mandatory |
origin.latitude | String | Latitude of the starting point | Mandatory |
origin.longitude | String | Longitude of the starting point | Mandatory |
destination | Object | Object containing latitude and longitude of the destination | Mandatory |
destination.latitude | String | Latitude of the destination | Mandatory |
destination.longitude | String | Longitude of the destination | Mandatory |
mode | String | Transportation mode (Valid values are: driving, walking, bicycling, transit) Default value will be driving | Optional |

{
"origin": {
"latitude": "21.1456113",
"longitude": "79.1191487"
},
"destination": {
"latitude": "21.1446313",
"longitude": "79.1122491"
},
"mode": "driving"
}Request Headers
Name | Value | Required | Description |
|---|---|---|---|
Content-type | application/json | Mandatory | The type of content that the request body contains. |
Authorization | XXXXXXXXXXXXXXX | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |
Code Samples
curl --location 'https://api-preproduction.signzy.app/api/v3/geocoding/findRouteDistance' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Authorization token>' \
--data '{
"origin": {
"latitude": "22.1432113",
"longitude": "76.1121487"
},
"destination": {
"latitude": "20.1442113",
"longitude": "78.1122487"
},
"mode": "driving"
}'Response body parameters
Parameter | Data Type | Description |
|---|---|---|
result | Object | The root object containing the result of the operation. |
result.originAddress | String | The address representing the origin of the journey. |
result.destinationAddress | String | The address representing the destination of the journey. |
result.mode | String | The mode of transportation used for the journey. |
result.distanceInMeters | Integer | The distance of the journey in meters. |
result.durationInSeconds | Integer | The duration of the journey in seconds. |
{
"result": {
"originAddress": "Sulgaon Rd, Ghoshla, Madhya Pradesh 451111, India",
"destinationAddress": "Unnamed Road, Pahur, Maharashtra 445109, India",
"mode": "driving",
"distanceInMeters": 413212,
"durationInSeconds": 34831
}
}Contact Us for Any Assistance
If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!