v1
latestOpenAPI 3.1.02026-08-0420183200.9 KBRouting
Get turn by turn routing instructions between two or more locations.
The route (turn-by-turn) API computes routes between two or more locations. It supports a variety of tunable costing methods, and supports routing through intermediate waypoints and discontinuous multi-leg routes.
post/route/v1
Request body
Example request
{
"costing": "auto_traffic",
"costing_options": {
"auto": {
"use_highways": 0,
"use_tolls": 1
}
},
"date_time": {
"type": 1,
"value": "2025-07-03T08:06"
},
"locations": [
{
"lat": 60.5347155,
"lon": -149.543469,
"type": "break"
},
{
"lat": 60.5349908,
"lon": -149.5485806,
"type": "break"
}
],
"units": "miles"
}Response
The computed route(s).
Example response
{
"trip": {
"language": "en-US",
"legs": [
{
"maneuvers": [
{
"begin_shape_index": 0,
"cost": 15.508,
"end_shape_index": 9,
"instruction": "Drive west on AK 1/Seward Highway.",
"length": 0.176,
"street_names": [
"AK 1",
"Seward Highway"
],
"time": 11.487,
"travel_mode": "drive",
"travel_type": "car",
"type": 1,
"verbal_multi_cue": true,
"verbal_post_transition_instruction": "Continue for 900 feet.",
"verbal_pre_transition_instruction": "Drive west on Alaska 1, Seward Highway. Then You will arrive at your destination."
},
{
"begin_shape_index": 9,
"cost": 0,
"end_shape_index": 9,
"instruction": "You have arrived at your destination.",
"length": 0,
"time": 0,
"travel_mode": "drive",
"travel_type": "car",
"type": 4,
"verbal_pre_transition_instruction": "You have arrived at your destination.",
"verbal_transition_alert_instruction": "You will arrive at your destination."
}
],
"shape": "wzvmrBxalf|GcCrX}A|Nu@jI}@pMkBtZ{@x^_Afj@Inn@`@veB",
"summary": {
"cost": 15.508,
"has_time_restrictions": false,
"length": 0.176,
"max_lat": 60.535008,
"max_lon": -149.543469,
"min_lat": 60.534715,
"min_lon": -149.54858,
"time": 11.487
}
}
],
"locations": [
{
"lat": 60.534715,
"lon": -149.543469,
"original_index": 0,
"type": "break"
},
{
"lat": 60.53499,
"lon": -149.54858,
"original_index": 1,
"type": "break"
}
],
"status": 0,
"status_message": "Found route between points",
"summary": {
"cost": 15.508,
"has_time_restrictions": false,
"length": 0.176,
"max_lat": 60.535008,
"max_lon": -149.543469,
"min_lat": 60.534715,
"min_lon": -149.54858,
"time": 11.487
},
"units": "miles"
}
}