Waze: Route
Route from Waze as JSON. 2 credits per successful call.
GET /v1/waze/route
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
from_lat | number | Required | Any |
from_lon | number | Required | Any |
to_lat | number | Required | Any |
to_lon | number | Required | Any |
alternatives | integer | Optional | Any |
avoid_tolls | boolean | Optional | Any |
avoid_ferries | boolean | Optional | Any |
vehicle_type | string | Optional | car, motorcycle, taxi |
passes[] | list of string | Optional | AT, CH, CZ, HU, SI, SK, ALL, NONE |
include[] | list of string | Optional | geometry, steps |
Example request
Waze
GET/v1/waze/route?from_lat=52.520006&from_lon=13.404954&to_lat=52.3906&to_lon=13.0645&alternatives=2&include[]=steps
{
"success": true,
"data": {
"from": {
"lat": 52.520006,
"lon": 13.404954
},
"to": {
"lat": 52.3906,
"lon": 13.0645
},
"vehicle_type": "car",
"avoid_tolls": false,
"avoid_ferries": false,
"passes": "all",
"count": 2,
"routes": [
{
"rank": 1,
"distance_m": 34944,
"eta_s": 3001,
"free_flow_s": 2051,
"delay_s": 950,
"toll": false,
"toll_meters": 0,
"ferry": false,
"ferry_meters": 0,
"main_streets": [
"A115 - E51",
"L40 - Nuthestraße",
"B2 - B5 - Straße des 17. Juni"
],
"road_types": {
"major_highway": 8579,
"street": 176,
"primary_street": 2992,
"ramp": 2047,
"freeway": 17515,
"minor_highway": 3635
},
"restricted_areas": [
"Umweltzone"
],
"passes": [
"germany-umweltplakette-grun"
],
"passes_through_danger_area": false,
"time_zone": "Europe/Berlin",
"bbox": {
"min_lat": 52.37223,
"min_lon": 13.0645,
"max_lat": 52.52005,
"max_lon": 13.40464
},
"steps": [
{
"instruction": "depart",
"street": "B2 - B5 - Karl-Liebknecht-Straße",
"lat": 52.520047,
"lon": 13.404642,
"distance_m": 1376,
"duration_s": 213
},
{
"instruction": "turn_right",
"street": "B2 - B5 - Unter den Linden",
"lat": 52.516951,
"lon": 13.385771,
"distance_m": 224,
"duration_s": 36
},
{
"instruction": "turn_left",
"street": "Schadowstraße",
"lat": 52.517722,
"lon": 13.383791,
"distance_m": 300,
"duration_s": 92
}
]
},
{
"rank": 2,
"distance_m": 39514,
"eta_s": 3313,
"free_flow_s": 2273,
"delay_s": 1040,
"toll": false,
"toll_meters": 0,
"ferry": false,
"ferry_meters": 0,
"main_streets": [
"A115 - E51",
"A100",
"L40 - Nuthestraße"
],
"road_types": {
"major_highway": 1104,
"primary_street": 4610,
"minor_highway": 8506,
"freeway": 23596,
"ramp": 1698
},
"restricted_areas": [
"Umweltzone"
],
"passes": [
"germany-umweltplakette-grun"
],
"passes_through_danger_area": false,
"time_zone": "Europe/Berlin",
"bbox": {
"min_lat": 52.37223,
"min_lon": 13.0645,
"max_lat": 52.55057,
"max_lon": 13.40464
},
"steps": [
{
"instruction": "depart",
"street": "B2 - B5 - Karl-Liebknecht-Straße",
"lat": 52.520047,
"lon": 13.404642,
"distance_m": 873,
"duration_s": 100
},
{
"instruction": "turn_right",
"street": "B2 - B5 - Unter den Linden",
"lat": 52.517369,
"lon": 13.393135,
"distance_m": 829,
"duration_s": 122
},
{
"instruction": "turn_left",
"street": "Tucholskystraße",
"lat": 52.524372,
"lon": 13.392539,
"distance_m": 405,
"duration_s": 81
}
]
}
]
},
"meta": {
"endpoint_family": "route_planning",
"request_id": "req_85eb34aefd584f85ad3a13bb4e250e48",
"credits_charged": 2,
"credits_remaining": 1788
}
}200 OKJSONX-Credits-Used: 2
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 2 credits per successful call; failed calls are free.
Response fields
data has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
from | object |
to | object |
vehicle_type | string |
avoid_tolls | boolean |
avoid_ferries | boolean |
passes | string |
routes | object[] |