Directions API
Directions API is a service that computes a route with given coordinates.
Request body
Example request
{
"origin": "41.349302,2.136480",
"destination": "41.349302,2.136480",
"waypoints": "41.349302,2.136480|41.349303,2.136481|41.349304,2.136482",
"avoid": "highway|toll",
"approaches": "unrestricted;;curb;",
"bearings": "0,180;0,180",
"exclude": "highway|toll|uturn",
"truck_size": "200,210,600",
"hazmat_type": "explosive|harmful_to_water",
"drive_time_limits": "500,400,400",
"rest_times": "500,300,100"
}Response
Example response
{
"route": {
"legs": [
{
"steps": [
{
"maneuver": {
"maneuver_type": "depart",
"modifier": "left"
}
}
]
}
]
}
}Changes
Changed in 8 of the 15 revisions of this API.3227
- ●
removed the request property
request-property-removed
- ●
- ●
deleted the
queryrequest parameterkeyrequest-parameter-removed
- ●
- ▲
added the new required
queryrequest parameterkeynew-required-request-parameter
- ○
the endpoint scheme security
api-keywas removed from the APIapi-security-removed
- ▲
- ▲
added the new required request property
new-required-request-property
- ▲
- ○
the endpoint scheme security
api-keywas added to the APIapi-security-added
- ○
- ○
the endpoint scheme security
api-keywas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
api-keywas added to the APIapi-security-added
- ○
- ▲
added the pattern
^([-+]?\d+(\.\d+)?),([-+]?\d+(\.\d+)?)(\|([-+]?\d+(\.\d+)?),([-+]?\d+(\.\d+)?))*$to the request propertyrequest-property-pattern-added
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ▲