Request format
https://api.routing.yandex.net/v2/route
? apikey=<string>
& waypoints=<lat1,lon1|lat2,lon2|...>
& [mode=<string>]
& [departure_time=<integer>]
& [avoid_tolls=<boolean>]
& [avoid_zones=<lat1,lon1|lat2,lon2|...>&avoid_zones=<lat1,lon1|lat2,lon2|...>]
& [traffic=<string>]
& [weight=<float>]
& [axle_weight=<float>]
& [max_weight=<float>]
& [height=<float>]
& [width=<float>]
& [length=<float>]
& [payload=<float>]
& [eco_class=<integer>]
& [has_trailer=<boolean>]
All params
apikey |
Required parameter The key issued in the Developer's Dashboard. Note Key activation takes up to 15 minutes. |
waypoints |
Required parameter Route points specified in decimal degrees (WGS84 standard).
|
mode |
Type of travel on the route. Acceptable values:
Alert When planning routes for trucks, the traffic rules of the Russian Federation apply. The service uses signs 3.4, 3.7, 3.11, 3.12, 3.13, 3.14, 3.15, 5.35, and 5.36 and table 8.11. |
departure_time |
The departure time in UNIX time. Used for calculating the expected traffic congestion. If this parameter is not specified, the traffic forecast is made for time when the request was processed. Alert This parameter is not used when calculating routes:
|
avoid_tolls |
No toll roads. When |
avoid_zones |
Set up a custom polygon on the map to avoid it during routing. You can set up multiple polygons in the request. Each polygon should has at least 3 points |
traffic |
Change the type of road traffic. When |
weight |
Vehicle weight in tons (only for |
axle_weight |
Actual vehicle axle load in tons (only for |
max_weight |
Maximum allowed vehicle weight in tons (only for |
height |
Vehicle height in meters (only for |
width |
Vehicle width in meters (only for |
length |
Vehicle length in meters (only for |
payload |
Maximum vehicle load capacity in tons (only for |
eco_class |
Vehicle emission standard (only for |
has_trailer |
Trailer (only for |