Response
Information about response payload, units and additional information
Status codes
200
Valid request and all waypoints could be geocoded.
400
Invalid request with information about validation.
404
Valid request but not all waypoints could be geocoded.
429
Load balancer rejected the request because too many request in parallel or your usage limits exceeded.
You'll get a HTTP status code 200
with waypoint information even if there could no car routing distance found. If one of the waypoints could not be found and geocoded a 404
is returned.
Units
All distances are given in kilometers. To convert distances into miles, they must be multiplied by 0.621371. Maritime distances are also given in nautical miles.
The travel duration for car routing is given in seconds. For maritime routes, which are given in hours duration
is calculated with a speed of 20 knots. 20 knots = 20 NM / hour.
Result
A DistanceAPI result consists of 3 main parts. route
contains summarized info about route between all waypoints. points
array contains additional information about the waypoints of the requested route. steps
array describes distance, duration and travel information for the ways between each waypoints.
Route
The route object contains summarized information about the route between all waypoints. This object is available in responses from all endpoints returning route information.
Airline distance
Learn more about airline distance calculation.
Car routing distance
You'll get a HTTP status code 200
with waypoint information even if there could no car routing distance found. status
flag indicates a car route was found
or not found
. If one of the waypoints could not be found and geocoded a 404
is returned. Learn more about response statuses.
Car routing detailed
If you use the distance/route/detailed endpoint additional information is returned in the car
response object.
Maritime distances
Maritime distances are returned as kilometers and nautical miles. The duration
is calculated with a speed of 20 knots. 20 knots = 20 NM / hour.
You'll get a HTTP status code 200
with waypoint information even if there could no car routing distance found. status
flag indicates a maritime route was found
or not found
. If one of the waypoints could not be found and geocoded a 404
is returned. Learn more about response statuses.
Steps
Points
Last updated