Calculate geographical distance.
POST/calculate/geodistance-v2
Returns the distance between a start and end point. The distance is calculated using a specific mode of travel, which can influence the route taken and is also used to estimate the amount of time it takes to travel.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
startPointstringrequired
The start point.
Example:
Flensburg
endPointstringrequired
The end point.
Example:
Istanbul
modestringrequired
The mode of travel.
Possible values: [driving
, walking
, bicycling
, transit
]
Example:
walking
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
distanceInKMnumberrequired
The distance between start and end point in kilometers when traveling.
duration objectrequired
The estimated amount of time it takes to travel from start to end point.
hoursnumberrequired
The number of hours
minutesnumberrequired
The number of minutes
{
"distanceInKM": 0,
"duration": {
"hours": 0,
"minutes": 0
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}