Построение маршрутов
Маршруты для нескольких пар точек
Вы можете построить маршруты для нескольких пар начальных и конечных точек в одном запросе и получить длину и время в пути каждого маршрута. Расчёты для каждой пары точек оплачиваются отдельно: подробнее см. в разделе Тарифы. Промежуточные точки не поддерживаются.
Построение маршрутов на общественном транспорте для нескольких пар точек в одном запросе недоступно.
Чтобы построить маршруты для нескольких пар точек, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:
-
points(обязательный параметр) — массив координат точек маршрута. Для каждого маршрута укажите только две точки: начальную и конечную. Промежуточные точки не поддерживаются. -
transport— способ передвижения. -
output— формат выдачи результата:summary— упрощённая выдача, в ответе только время и длина маршрута.detailed— полная выдача с геометрией маршрута.
-
locale— язык текстовых описаний элементов маршрута: русский.
Пример запроса:
curl --request POST \
--url 'https://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
[
{
"type": "stop",
"lon": 37.582591,
"lat": 55.775364
},
{
"type": "stop",
"lon": 37.656625,
"lat": 55.765036
}
],
[
{
"type": "stop",
"lon": 37.697461,
"lat": 55.798227
},
{
"type": "stop",
"lon": 37.641507,
"lat": 55.821029
}
]
],
"transport": "bicycle",
"output": "summary",
"locale": "ru"
}'
Пример ответа:
response.json
[
{
"distance": 6002,
"duration": 1722,
"lat1": 55.775364,
"lat2": 55.765036,
"lon1": 37.582591,
"lon2": 37.656625,
"reliability": 1,
"status": "OK"
},
{
"distance": 5948,
"duration": 1764,
"lat1": 55.798227,
"lat2": 55.821029,
"lon1": 37.697461,
"lon2": 37.641507,
"reliability": 1,
"status": "OK"
}
]
Кратчайший по времени или расстоянию
По умолчанию для любого способа передвижения строится кратчайший по времени маршрут. Для всех способов, кроме общественного транспорта, также учитываются пробки.
Вы также можете построить кратчайший по расстоянию маршрут. В этом случае пробки учитываться не будут, и маршрут может оказаться не оптимальным по времени.
Построение кратчайшего по расстоянию маршрута на общественном транспорте недоступно. Для общественного транспорта по умолчанию учитывается расписание.
Пример построения кратчайших по времени и расстоянию маршрутов для автомобиля:
Чтобы явно задать тип построения маршрута, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:
-
points(обязательный параметр) — массив координат точек маршрута. Укажите минимум две точки: начальную и конечную. -
transport— способ передвижения. -
output— формат выдачи результата:summary— упрощённая выдача, в ответе только время и длина маршрута.detailed— полная выдача с геометрией маршрута.
-
locale— язык текстовых описаний элементов маршрута: русский. -
route_mode— тип построения маршрута:fastest— кратчайший по времени.shortest— кратчайший по расстоянию.
Пример запроса:
curl --request POST \
--url 'https://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"type": "stop",
"lon": 37.582591,
"lat": 55.775364
},
{
"type": "stop",
"lon": 37.656625,
"lat": 55.765036
}
],
"transport": "driving",
"output": "detailed",
"locale": "ru",
"route_mode": "fastest"
}'
Пример ответа:
response.json
{
"message": null,
"query": {
"locale": "ru",
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"route_mode": "fastest",
"transport": "driving"
},
"result": [
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": [
"highway"
],
"id": "7830703483465300881",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "4995919273289615540",
"outcoming_path": {
"distance": 30,
"duration": 13,
"geometry": [
{
"color": "slow",
"length": 9,
"selection": "LINESTRING(37.583086 55.775486, 37.583150 55.775405)",
"style": "normal"
},
{
"color": "fast",
"length": 21,
"selection": "LINESTRING(37.583150 55.775405, 37.583231 55.775307, 37.583253 55.775281, 37.583307 55.775231)",
"style": "normal"
}
],
"names": [
"площадь Тверская Застава"
]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "13207204305082848292",
"outcoming_path": {
"distance": 164,
"duration": 203,
"geometry": [
{
"color": "slow-jams",
"length": 76,
"selection": "LINESTRING(37.583307 55.775231, 37.583561 55.775318, 37.583628 55.775341, 37.583734 55.775385, 37.583827 55.775434, 37.584035 55.775570, 37.584217 55.775689)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 72,
"selection": "LINESTRING(37.584217 55.775689, 37.584347 55.775775, 37.584624 55.775956, 37.584979 55.776188)",
"style": "normal"
},
{
"color": "fast",
"length": 16,
"selection": "LINESTRING(37.584979 55.776188, 37.585058 55.776240, 37.585154 55.776303)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -92,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. 1-я Тверская-Ямская",
"icon": "crossroad_right",
"id": "5167330429756605095",
"outcoming_path": {
"distance": 2525,
"duration": 470,
"geometry": [
{
"color": "normal",
"length": 801,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586214 55.775714, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126, 37.592026 55.772311, 37.592333 55.772132, 37.594081 55.771108)",
"style": "normal"
},
{
"color": "fast",
"length": 607,
"selection": "LINESTRING(37.594081 55.771108, 37.594993 55.770574, 37.595598 55.770219, 37.595740 55.770136, 37.595903 55.770019, 37.596125 55.769859, 37.596682 55.769461, 37.596711 55.769445, 37.597332 55.769104, 37.598026 55.768722, 37.599143 55.768109, 37.599686 55.767811, 37.600043 55.767616, 37.600420 55.767408, 37.600897 55.767147)",
"style": "normal"
},
{
"color": "normal",
"length": 407,
"selection": "LINESTRING(37.600897 55.767147, 37.601521 55.766805, 37.601900 55.766596, 37.602422 55.766310, 37.603289 55.765833, 37.603830 55.765536, 37.604201 55.765332, 37.604264 55.765298, 37.605221 55.764772, 37.605331 55.764712, 37.605589 55.764564)",
"style": "normal"
},
{
"color": "fast",
"length": 27,
"selection": "LINESTRING(37.605589 55.764564, 37.605755 55.764468, 37.605892 55.764379)",
"style": "normal"
},
{
"color": "slow",
"length": 46,
"selection": "LINESTRING(37.605892 55.764379, 37.605943 55.764346, 37.606052 55.764261, 37.606330 55.764042)",
"style": "normal"
},
{
"color": "fast",
"length": 116,
"selection": "LINESTRING(37.606330 55.764042, 37.607409 55.763195)",
"style": "normal"
},
{
"color": "normal",
"length": 93,
"selection": "LINESTRING(37.607409 55.763195, 37.608277 55.762513)",
"style": "normal"
},
{
"color": "slow",
"length": 73,
"selection": "LINESTRING(37.608277 55.762513, 37.608419 55.762402, 37.608663 55.762210, 37.608964 55.761973)",
"style": "normal"
},
{
"color": "normal",
"length": 202,
"selection": "LINESTRING(37.608964 55.761973, 37.609189 55.761797, 37.609668 55.761364, 37.610581 55.760402)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 153,
"selection": "LINESTRING(37.610581 55.760402, 37.611732 55.759187)",
"style": "normal"
}
],
"names": [
"1-я Тверская-Ямская"
]
},
"outcoming_path_comment": "2.5 км прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Тверская",
"icon": "turn_over_right_hand",
"id": "9110940857251882700",
"outcoming_path": {
"distance": 1499,
"duration": 299,
"geometry": [
{
"color": "normal",
"length": 728,
"selection": "LINESTRING(37.611732 55.759187, 37.611902 55.759266, 37.611859 55.759310, 37.610921 55.760302, 37.610052 55.761218, 37.609858 55.761422, 37.609373 55.761859, 37.609260 55.761948, 37.609138 55.762044, 37.608839 55.762279, 37.608430 55.762600, 37.606823 55.763860, 37.606117 55.764416, 37.605917 55.764547, 37.605693 55.764675)",
"style": "normal"
},
{
"color": "fast",
"length": 24,
"selection": "LINESTRING(37.605693 55.764675, 37.605494 55.764790, 37.605415 55.764833)",
"style": "normal"
},
{
"color": "normal",
"length": 100,
"selection": "LINESTRING(37.605415 55.764833, 37.604406 55.765387, 37.604263 55.765465)",
"style": "normal"
},
{
"color": "fast",
"length": 300,
"selection": "LINESTRING(37.604263 55.765465, 37.604023 55.765598, 37.603497 55.765886, 37.603395 55.765942, 37.603281 55.766005, 37.602574 55.766393, 37.601737 55.766853, 37.601394 55.767041, 37.600794 55.767371)",
"style": "normal"
},
{
"color": "normal",
"length": 120,
"selection": "LINESTRING(37.600794 55.767371, 37.600421 55.767575, 37.600224 55.767683, 37.599668 55.767989, 37.599563 55.768046, 37.599407 55.768132)",
"style": "normal"
},
{
"color": "slow",
"length": 103,
"selection": "LINESTRING(37.599407 55.768132, 37.598228 55.768780)",
"style": "normal"
},
{
"color": "normal",
"length": 124,
"selection": "LINESTRING(37.598228 55.768780, 37.597641 55.769101, 37.597139 55.769377, 37.596843 55.769539, 37.596803 55.769568)",
"style": "normal"
}
],
"names": [
"Тверская"
]
},
"outcoming_path_comment": "1.5 км прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Садовая-Триумфальная",
"icon": "crossroad_right",
"id": "10669702560193207142",
"outcoming_path": {
"distance": 4121,
"duration": 602,
"geometry": [
{
"color": "slow",
"length": 311,
"selection": "LINESTRING(37.596803 55.769568, 37.596913 55.769622, 37.597528 55.769925, 37.597712 55.769998, 37.597758 55.770016, 37.597879 55.770065, 37.597893 55.770070, 37.597910 55.770077, 37.597934 55.770090, 37.598008 55.770158, 37.598076 55.770192, 37.598210 55.770249, 37.599275 55.770728, 37.599882 55.770936, 37.600050 55.770989, 37.600407 55.771103, 37.600831 55.771230)",
"style": "normal"
},
{
"color": "normal",
"length": 311,
"selection": "LINESTRING(37.600831 55.771230, 37.600914 55.771254, 37.600957 55.771272, 37.601329 55.771460, 37.602336 55.771763, 37.602421 55.771789, 37.602861 55.771922, 37.603929 55.772247, 37.604227 55.772338, 37.604516 55.772426, 37.605210 55.772564)",
"style": "normal"
},
{
"color": "slow",
"length": 136,
"selection": "LINESTRING(37.605210 55.772564, 37.605213 55.772565, 37.605268 55.772575, 37.605728 55.772651, 37.605822 55.772664, 37.607062 55.772839, 37.607333 55.772877)",
"style": "normal"
},
{
"color": "normal",
"length": 386,
"selection": "LINESTRING(37.607333 55.772877, 37.607382 55.772884, 37.608251 55.772986, 37.608986 55.773080, 37.609121 55.773096, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247, 37.611026 55.773277, 37.611498 55.773310, 37.612248 55.773363, 37.612442 55.773370, 37.613457 55.773408)",
"style": "normal"
},
{
"color": "slow",
"length": 244,
"selection": "LINESTRING(37.613457 55.773408, 37.615054 55.773470, 37.617345 55.773557)",
"style": "normal"
},
{
"color": "normal",
"length": 370,
"selection": "LINESTRING(37.617345 55.773557, 37.619000 55.773621, 37.619209 55.773628, 37.621035 55.773684, 37.621922 55.773690, 37.623161 55.773671, 37.623250 55.773668)",
"style": "bridge"
},
{
"color": "normal",
"length": 250,
"selection": "LINESTRING(37.623250 55.773668, 37.624510 55.773622, 37.625672 55.773548, 37.625906 55.773531, 37.626549 55.773483, 37.627213 55.773398)",
"style": "normal"
},
{
"color": "slow",
"length": 294,
"selection": "LINESTRING(37.627213 55.773398, 37.627407 55.773378, 37.627898 55.773317, 37.628220 55.773274, 37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946, 37.631810 55.772768)",
"style": "normal"
},
{
"color": "fast",
"length": 3,
"selection": "LINESTRING(37.631810 55.772768, 37.631859 55.772761)",
"style": "normal"
},
{
"color": "slow",
"length": 42,
"selection": "LINESTRING(37.631859 55.772761, 37.632302 55.772699, 37.632528 55.772668)",
"style": "normal"
},
{
"color": "normal",
"length": 311,
"selection": "LINESTRING(37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511, 37.635934 55.772276, 37.636482 55.772197, 37.636863 55.772130, 37.637246 55.772053, 37.637383 55.772024)",
"style": "normal"
},
{
"color": "fast",
"length": 350,
"selection": "LINESTRING(37.637383 55.772024, 37.637746 55.771946, 37.638398 55.771787, 37.638671 55.771709, 37.639223 55.771539, 37.639458 55.771467, 37.640138 55.771258, 37.641596 55.770815, 37.642386 55.770573)",
"style": "normal"
},
{
"color": "normal",
"length": 241,
"selection": "LINESTRING(37.642386 55.770573, 37.642720 55.770474, 37.642942 55.770406, 37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580, 37.645818 55.769531)",
"style": "normal"
},
{
"color": "fast",
"length": 21,
"selection": "LINESTRING(37.645818 55.769531, 37.646121 55.769442)",
"style": "normal"
},
{
"color": "normal",
"length": 76,
"selection": "LINESTRING(37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158)",
"style": "normal"
},
{
"color": "fast",
"length": 455,
"selection": "LINESTRING(37.647223 55.769158, 37.647789 55.769017, 37.648564 55.768776, 37.649337 55.768557, 37.649691 55.768459, 37.649817 55.768424, 37.649886 55.768391, 37.650113 55.768283, 37.650280 55.768171, 37.651022 55.767635, 37.651497 55.767307, 37.651966 55.766988, 37.652654 55.766522)",
"style": "normal"
},
{
"color": "normal",
"length": 227,
"selection": "LINESTRING(37.652654 55.766522, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923)",
"style": "normal"
},
{
"color": "fast",
"length": 93,
"selection": "LINESTRING(37.654967 55.764923, 37.655597 55.764466, 37.655881 55.764258)",
"style": "normal"
}
],
"names": [
"Садовая-Триумфальная"
]
},
"outcoming_path_comment": "4.1 км прямо",
"turn_angle": 94,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "14824836753715902852",
"outcoming_path": {
"distance": 71,
"duration": 13,
"geometry": [
{
"color": "fast",
"length": 71,
"selection": "LINESTRING(37.655881 55.764258, 37.655917 55.764246, 37.655955 55.764239, 37.655993 55.764237, 37.656027 55.764240, 37.656049 55.764245, 37.656067 55.764253, 37.656086 55.764271, 37.656095 55.764288, 37.656094 55.764310, 37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": [
"Садовая-Черногрязская"
]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "18227753429858667872",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655867 55.764818)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 12,
"selection": "LINESTRING(37.655867 55.764818, 37.656014 55.764887)",
"style": "archway"
},
{
"color": "ignore",
"length": 3,
"selection": "LINESTRING(37.656014 55.764887, 37.656064 55.764909)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "5109375965851870152",
"outcoming_path": {
"distance": 93,
"duration": 27,
"geometry": [
{
"color": "ignore",
"length": 93,
"selection": "LINESTRING(37.656064 55.764909, 37.656554 55.764570, 37.656591 55.764558, 37.656635 55.764560, 37.656674 55.764578, 37.656728 55.764601, 37.656741 55.764609, 37.656749 55.764617, 37.656755 55.764630, 37.656755 55.764641, 37.656749 55.764655, 37.656538 55.764857)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "12595671429588192494",
"outcoming_path": {
"distance": 21,
"duration": 6,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857, 37.656510 55.764857, 37.656485 55.764865, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": -46,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "15906924842259479249",
"outcoming_path": {
"distance": 18,
"duration": 5,
"geometry": [
{
"color": "ignore",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992, 37.656543 55.765075, 37.656553 55.765080)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "16377021944685554640",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m1/carrouting/1772722131.831510",
"total_distance": 8578,
"total_duration": 1648,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "8.6"
},
"ui_total_duration": "27 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"projected_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"transit": false
},
{
"original_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"projected_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": [
"highway"
],
"id": "2224039061770077069",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "7868054996495180527",
"outcoming_path": {
"distance": 30,
"duration": 12,
"geometry": [
{
"color": "slow",
"length": 9,
"selection": "LINESTRING(37.583086 55.775486, 37.583150 55.775405)",
"style": "normal"
},
{
"color": "fast",
"length": 21,
"selection": "LINESTRING(37.583150 55.775405, 37.583231 55.775307, 37.583253 55.775281, 37.583307 55.775231)",
"style": "normal"
}
],
"names": [
"площадь Тверская Застава"
]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "667974492178130762",
"outcoming_path": {
"distance": 164,
"duration": 188,
"geometry": [
{
"color": "slow-jams",
"length": 76,
"selection": "LINESTRING(37.583307 55.775231, 37.583561 55.775318, 37.583628 55.775341, 37.583734 55.775385, 37.583827 55.775434, 37.584035 55.775570, 37.584217 55.775689)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 72,
"selection": "LINESTRING(37.584217 55.775689, 37.584347 55.775775, 37.584624 55.775956, 37.584979 55.776188)",
"style": "normal"
},
{
"color": "fast",
"length": 16,
"selection": "LINESTRING(37.584979 55.776188, 37.585058 55.776240, 37.585154 55.776303)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -92,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. 1-я Тверская-Ямская",
"icon": "crossroad_right",
"id": "14089809804442526042",
"outcoming_path": {
"distance": 1256,
"duration": 168,
"geometry": [
{
"color": "normal",
"length": 801,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586214 55.775714, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126, 37.592026 55.772311, 37.592333 55.772132, 37.594081 55.771108)",
"style": "normal"
},
{
"color": "fast",
"length": 455,
"selection": "LINESTRING(37.594081 55.771108, 37.594993 55.770574, 37.595598 55.770219, 37.595740 55.770136, 37.595903 55.770019, 37.596125 55.769859, 37.596682 55.769461, 37.596711 55.769445, 37.597332 55.769104, 37.598026 55.768722, 37.599143 55.768109)",
"style": "normal"
}
],
"names": [
"1-я Тверская-Ямская"
]
},
"outcoming_path_comment": "1.3 км прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Благовещенский переулок",
"icon": "crossroad_right",
"id": "8906074580393071066",
"outcoming_path": {
"distance": 282,
"duration": 230,
"geometry": [
{
"color": "fast",
"length": 14,
"selection": "LINESTRING(37.599143 55.768109, 37.598984 55.768020)",
"style": "normal"
},
{
"color": "slow",
"length": 169,
"selection": "LINESTRING(37.598984 55.768020, 37.598729 55.767877, 37.598486 55.767739, 37.598367 55.767674, 37.598289 55.767630, 37.598123 55.767537, 37.598037 55.767479, 37.597972 55.767421, 37.597911 55.767336, 37.597851 55.767189, 37.597840 55.767160, 37.597813 55.767093, 37.597784 55.767047, 37.597727 55.767009, 37.597296 55.766836)",
"style": "normal"
},
{
"color": "fast",
"length": 92,
"selection": "LINESTRING(37.597296 55.766836, 37.596096 55.766356)",
"style": "normal"
},
{
"color": "slow",
"length": 7,
"selection": "LINESTRING(37.596096 55.766356, 37.595993 55.766315)",
"style": "normal"
}
],
"names": [
"Благовещенский переулок"
]
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Ермолаевский переулок",
"icon": "crossroad_right",
"id": "10997236295557222455",
"outcoming_path": {
"distance": 165,
"duration": 245,
"geometry": [
{
"color": "fast",
"length": 10,
"selection": "LINESTRING(37.595993 55.766315, 37.595925 55.766348, 37.595858 55.766362)",
"style": "normal"
},
{
"color": "slow",
"length": 129,
"selection": "LINESTRING(37.595858 55.766362, 37.595846 55.766364, 37.595702 55.766372, 37.595123 55.766406, 37.595074 55.766409, 37.594998 55.766409, 37.594939 55.766408, 37.594813 55.766399, 37.594681 55.766371, 37.594660 55.766363, 37.593957 55.766079)",
"style": "normal"
},
{
"color": "fast",
"length": 19,
"selection": "LINESTRING(37.593957 55.766079, 37.593699 55.765975)",
"style": "normal"
},
{
"color": "slow",
"length": 7,
"selection": "LINESTRING(37.593699 55.765975, 37.593599 55.765935)",
"style": "normal"
}
],
"names": [
"Ермолаевский переулок"
]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 67,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. аллея Архитектора Шехтеля",
"icon": "crossroad_right",
"id": "15185647334809037120",
"outcoming_path": {
"distance": 130,
"duration": 101,
"geometry": [
{
"color": "slow-jams",
"length": 7,
"selection": "LINESTRING(37.593599 55.765935, 37.593518 55.765985)",
"style": "normal"
},
{
"color": "fast",
"length": 48,
"selection": "LINESTRING(37.593518 55.765985, 37.592996 55.766304)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 59,
"selection": "LINESTRING(37.592996 55.766304, 37.592626 55.766531, 37.592353 55.766698)",
"style": "normal"
},
{
"color": "fast",
"length": 16,
"selection": "LINESTRING(37.592353 55.766698, 37.592175 55.766807)",
"style": "normal"
}
],
"names": [
"аллея Архитектора Шехтеля"
]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 83,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Большая Садовая",
"icon": "crossroad_right",
"id": "14149564433095500652",
"outcoming_path": {
"distance": 4544,
"duration": 584,
"geometry": [
{
"color": "normal",
"length": 319,
"selection": "LINESTRING(37.592175 55.766807, 37.592529 55.767054, 37.592988 55.767375, 37.593622 55.767817, 37.594008 55.768087, 37.594339 55.768318, 37.594632 55.768511, 37.594932 55.768694, 37.595214 55.768858, 37.595486 55.769004)",
"style": "normal"
},
{
"color": "normal",
"length": 196,
"selection": "LINESTRING(37.595486 55.769004, 37.596007 55.769269, 37.596454 55.769495, 37.596797 55.769669, 37.597193 55.769869, 37.597838 55.770195)",
"style": "tunnel"
},
{
"color": "normal",
"length": 530,
"selection": "LINESTRING(37.597838 55.770195, 37.598115 55.770332, 37.598389 55.770458, 37.598674 55.770579, 37.599125 55.770758, 37.599606 55.770937, 37.599820 55.771001, 37.600450 55.771189, 37.600775 55.771293, 37.601329 55.771460, 37.602336 55.771763, 37.602421 55.771789, 37.602861 55.771922, 37.603929 55.772247, 37.604227 55.772338, 37.604516 55.772426, 37.605210 55.772564)",
"style": "normal"
},
{
"color": "slow",
"length": 136,
"selection": "LINESTRING(37.605210 55.772564, 37.605213 55.772565, 37.605268 55.772575, 37.605728 55.772651, 37.605822 55.772664, 37.607062 55.772839, 37.607333 55.772877)",
"style": "normal"
},
{
"color": "normal",
"length": 386,
"selection": "LINESTRING(37.607333 55.772877, 37.607382 55.772884, 37.608251 55.772986, 37.608986 55.773080, 37.609121 55.773096, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247, 37.611026 55.773277, 37.611498 55.773310, 37.612248 55.773363, 37.612442 55.773370, 37.613457 55.773408)",
"style": "normal"
},
{
"color": "slow",
"length": 244,
"selection": "LINESTRING(37.613457 55.773408, 37.615054 55.773470, 37.617345 55.773557)",
"style": "normal"
},
{
"color": "normal",
"length": 370,
"selection": "LINESTRING(37.617345 55.773557, 37.619000 55.773621, 37.619209 55.773628, 37.621035 55.773684, 37.621922 55.773690, 37.623161 55.773671, 37.623250 55.773668)",
"style": "bridge"
},
{
"color": "normal",
"length": 250,
"selection": "LINESTRING(37.623250 55.773668, 37.624510 55.773622, 37.625672 55.773548, 37.625906 55.773531, 37.626549 55.773483, 37.627213 55.773398)",
"style": "normal"
},
{
"color": "slow",
"length": 294,
"selection": "LINESTRING(37.627213 55.773398, 37.627407 55.773378, 37.627898 55.773317, 37.628220 55.773274, 37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946, 37.631810 55.772768)",
"style": "normal"
},
{
"color": "fast",
"length": 3,
"selection": "LINESTRING(37.631810 55.772768, 37.631859 55.772761)",
"style": "normal"
},
{
"color": "slow",
"length": 42,
"selection": "LINESTRING(37.631859 55.772761, 37.632302 55.772699, 37.632528 55.772668)",
"style": "normal"
},
{
"color": "normal",
"length": 311,
"selection": "LINESTRING(37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511, 37.635934 55.772276, 37.636482 55.772197, 37.636863 55.772130, 37.637246 55.772053, 37.637383 55.772024)",
"style": "normal"
},
{
"color": "fast",
"length": 350,
"selection": "LINESTRING(37.637383 55.772024, 37.637746 55.771946, 37.638398 55.771787, 37.638671 55.771709, 37.639223 55.771539, 37.639458 55.771467, 37.640138 55.771258, 37.641596 55.770815, 37.642386 55.770573)",
"style": "normal"
},
{
"color": "normal",
"length": 241,
"selection": "LINESTRING(37.642386 55.770573, 37.642720 55.770474, 37.642942 55.770406, 37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580, 37.645818 55.769531)",
"style": "normal"
},
{
"color": "fast",
"length": 21,
"selection": "LINESTRING(37.645818 55.769531, 37.646121 55.769442)",
"style": "normal"
},
{
"color": "normal",
"length": 76,
"selection": "LINESTRING(37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158)",
"style": "normal"
},
{
"color": "fast",
"length": 455,
"selection": "LINESTRING(37.647223 55.769158, 37.647789 55.769017, 37.648564 55.768776, 37.649337 55.768557, 37.649691 55.768459, 37.649817 55.768424, 37.649886 55.768391, 37.650113 55.768283, 37.650280 55.768171, 37.651022 55.767635, 37.651497 55.767307, 37.651966 55.766988, 37.652654 55.766522)",
"style": "normal"
},
{
"color": "normal",
"length": 227,
"selection": "LINESTRING(37.652654 55.766522, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923)",
"style": "normal"
},
{
"color": "fast",
"length": 93,
"selection": "LINESTRING(37.654967 55.764923, 37.655597 55.764466, 37.655881 55.764258)",
"style": "normal"
}
],
"names": [
"Большая Садовая"
]
},
"outcoming_path_comment": "4.5 км прямо",
"turn_angle": 82,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "7538988597936995532",
"outcoming_path": {
"distance": 71,
"duration": 12,
"geometry": [
{
"color": "fast",
"length": 71,
"selection": "LINESTRING(37.655881 55.764258, 37.655917 55.764246, 37.655955 55.764239, 37.655993 55.764237, 37.656027 55.764240, 37.656049 55.764245, 37.656067 55.764253, 37.656086 55.764271, 37.656095 55.764288, 37.656094 55.764310, 37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": [
"Садовая-Черногрязская"
]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "4707108433069289032",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655867 55.764818)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 12,
"selection": "LINESTRING(37.655867 55.764818, 37.656014 55.764887)",
"style": "archway"
},
{
"color": "ignore",
"length": 3,
"selection": "LINESTRING(37.656014 55.764887, 37.656064 55.764909)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "6252576394909612166",
"outcoming_path": {
"distance": 93,
"duration": 25,
"geometry": [
{
"color": "ignore",
"length": 93,
"selection": "LINESTRING(37.656064 55.764909, 37.656554 55.764570, 37.656591 55.764558, 37.656635 55.764560, 37.656674 55.764578, 37.656728 55.764601, 37.656741 55.764609, 37.656749 55.764617, 37.656755 55.764630, 37.656755 55.764641, 37.656749 55.764655, 37.656538 55.764857)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "2707583279867697199",
"outcoming_path": {
"distance": 21,
"duration": 6,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857, 37.656510 55.764857, 37.656485 55.764865, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": -46,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "2985366691134170118",
"outcoming_path": {
"distance": 18,
"duration": 5,
"geometry": [
{
"color": "ignore",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992, 37.656543 55.765075, 37.656553 55.765080)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "16377021944685554640",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m1/carrouting/1772722131.833045",
"total_distance": 6810,
"total_duration": 1586,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "6.8"
},
"ui_total_duration": "26 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"projected_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"transit": false
},
{
"original_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"projected_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}
Время отправления
По умолчанию маршруты на общественном транспорте строятся на текущее время по местному времени. При расчёте учитывается расписание движения общественного транспорта.
Чтобы указать время отправления для других способов передвижения, кроме общественного транспорта, см. раздел Учёт пробок.
Чтобы построить маршрут на общественном транспорте с точным временем отправления, отправьте POST-запрос на /public_transport/2.0 со следующими параметрами:
source(обязательный параметр) — координаты начальной точки (широта и долгота).target(обязательный параметр) — координаты конечной точки (широта и долгота).transport(обязательный параметр) — массив видов общественного транспорта. Например,tram— трамвай. Полный список видов общественного транспорта см. в описании параметраtransportв Справочнике API или в инструкции Способы передвижения.start_time— дата и время начала движения в формате Unix-времени (например,1766646000).locale— язык текстовых описаний элементов маршрута: русский.
Пример запроса:
curl --request POST \
--url 'https://routing.api.2gis.com/public_transport/2.0?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"source":
{
"point":
{
"lat": 55.798227,
"lon": 37.697461
}
},
"target":
{
"point":
{
"lat": 55.821029,
"lon": 37.641507
}
},
"transport": ["tram"],
"start_time": 1766646000, // 05.03.2026 10:00
"locale": "ru"
}'
Пример ответа:
response.json
[
{
"crossing_count": 0,
"id": "1",
"movements": [
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.697461 55.798227, 37.697219 55.798105)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697219 55.798105, 37.696846 55.798442, 37.696773 55.798416, 37.696651 55.798526, 37.696566 55.798495, 37.696479 55.798464, 37.696468 55.798491, 37.696255 55.798682, 37.696146 55.798780, 37.696077 55.798843, 37.695057 55.799763, 37.694602 55.800173, 37.694537 55.800239, 37.694243 55.800507, 37.694229 55.800526, 37.694197 55.800540, 37.694151 55.800542, 37.692213 55.800149, 37.692207 55.800147, 37.692178 55.800202, 37.692165 55.800246)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.692165 55.800246, 37.692111 55.800420)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.692111 55.800420, 37.691998 55.800791, 37.691872 55.801172)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.691872 55.801172, 37.691668 55.801667, 37.691519 55.802111, 37.691425 55.802391, 37.691121 55.802404, 37.691043 55.802426, 37.690760 55.802501)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.690760 55.802501, 37.690329 55.802565, 37.690284 55.802572, 37.689865 55.802584, 37.689708 55.802600, 37.689474 55.802625, 37.689262 55.802597, 37.689094 55.802576, 37.688655 55.802660)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.688655 55.802660, 37.688643 55.802662)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.688643 55.802662, 37.688763 55.802770)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.688763 55.802770, 37.688736 55.802779)",
"z_first": 0,
"z_last": 0
}
]
}
],
"distance": 943,
"id": "2",
"moving_duration": 678,
"platforms": null,
"routes": null,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "пешком 950 м",
"name": "",
"subtype": "start"
}
},
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.688736 55.802779, 37.691783 55.805522, 37.691783 55.805522, 37.691818 55.805554, 37.691845 55.805605, 37.691850 55.805654, 37.691833 55.805706, 37.691801 55.805749, 37.688260 55.808460, 37.688260 55.808460, 37.685191 55.810809, 37.685191 55.810809, 37.685033 55.810930, 37.684952 55.810992, 37.684916 55.811028, 37.684896 55.811062, 37.684892 55.811096, 37.684896 55.811129, 37.684909 55.811162, 37.686836 55.813675, 37.686944 55.813828, 37.686980 55.813929, 37.686960 55.814036, 37.686939 55.814092, 37.686932 55.814099, 37.686852 55.814155, 37.685514 55.815093, 37.685514 55.815093, 37.685416 55.815161, 37.685416 55.815161, 37.685287 55.815223, 37.685095 55.815285, 37.684827 55.815345, 37.683910 55.815484, 37.683910 55.815484, 37.683906 55.815485, 37.683505 55.815543, 37.683137 55.815632, 37.682842 55.815735, 37.679923 55.817113, 37.679697 55.817198, 37.679697 55.817198, 37.679452 55.817263, 37.679197 55.817316, 37.678881 55.817370, 37.678881 55.817370, 37.676014 55.817855, 37.675427 55.817966, 37.674852 55.818113, 37.670645 55.819328, 37.670645 55.819328, 37.670268 55.819436, 37.670268 55.819436, 37.670210 55.819453, 37.670210 55.819453, 37.668247 55.820018, 37.668247 55.820018, 37.667630 55.820196, 37.667630 55.820196, 37.667327 55.820283, 37.665856 55.820705, 37.665856 55.820705, 37.664176 55.821188, 37.662182 55.821803, 37.662182 55.821803, 37.658375 55.822966, 37.658375 55.822966, 37.657575 55.823211, 37.652794 55.824836, 37.652402 55.824974, 37.652402 55.824974, 37.652265 55.825022, 37.651428 55.825471, 37.651068 55.825617, 37.650897 55.825687, 37.650698 55.825761, 37.648796 55.826395)"
}
],
"platforms": [
{
"geometry": "POINT(37.688736 55.802779)",
"id": "16"
},
{
"geometry": "POINT(37.691783 55.805522)",
"id": "17"
},
{
"geometry": "POINT(37.688260 55.808460)",
"id": "18"
},
{
"geometry": "POINT(37.685191 55.810809)",
"id": "19"
},
{
"geometry": "POINT(37.685514 55.815093)",
"id": "20"
},
{
"geometry": "POINT(37.678881 55.817370)",
"id": "21"
},
{
"geometry": "POINT(37.670645 55.819328)",
"id": "22"
},
{
"geometry": "POINT(37.662182 55.821803)",
"id": "23"
},
{
"geometry": "POINT(37.658375 55.822966)",
"id": "24"
},
{
"geometry": "POINT(37.652402 55.824974)",
"id": "25"
},
{
"geometry": "POINT(37.648796 55.826395)",
"id": "26"
}
]
}
],
"distance": 4263,
"id": "3",
"moving_duration": 780,
"platforms": {
"names": [
"Большая Оленья",
"2-й Ширяевский пер.",
"Большая Ширяевская",
"Ростокинский проезд",
"Институт иностранных языков",
"Станция юных натуралистов",
"пл. Академика Люльки",
"Бориса Галушкина д.17",
"Ярославская"
]
},
"routes": [
{
"color": "#eb5a2b",
"names": [
"25"
],
"subtype": "tram",
"subtype_name": "трамвай"
}
],
"type": "passage",
"waiting_duration": 42,
"waypoint": {
"combined": false,
"comment": "",
"name": "Майский просек",
"subtype": "tram"
}
},
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.648796 55.826395, 37.648862 55.826459)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.648862 55.826459, 37.648624 55.826537, 37.648520 55.826563, 37.648211 55.826631, 37.648173 55.826650, 37.648163 55.826660, 37.648136 55.826652, 37.648073 55.826591)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.648073 55.826591, 37.647982 55.826506)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.647982 55.826506, 37.647935 55.826465, 37.647864 55.826404, 37.647828 55.826373, 37.646517 55.825081, 37.645719 55.824322, 37.645260 55.823904, 37.645026 55.823696, 37.644816 55.823497, 37.644672 55.823352, 37.644411 55.823145, 37.643613 55.822410, 37.643656 55.822397, 37.643382 55.822134, 37.643203 55.821964, 37.643018 55.821773, 37.642977 55.821735)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642977 55.821735, 37.642882 55.821644)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642882 55.821644, 37.642812 55.821579, 37.642669 55.821442, 37.642378 55.821171, 37.642309 55.821107, 37.642222 55.821021, 37.642069 55.820892, 37.641883 55.820954, 37.641737 55.821003, 37.641765 55.821037, 37.641777 55.821051, 37.641767 55.821066, 37.641753 55.821076, 37.641595 55.821125, 37.641504 55.821039)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.641504 55.821039, 37.641507 55.821029)",
"z_first": 0,
"z_last": 0
}
]
}
],
"distance": 848,
"id": "27",
"moving_duration": 640,
"platforms": null,
"routes": null,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "пешком 850 м",
"name": "Проспект Мира",
"subtype": "pedestrian"
}
},
{
"distance": 0,
"id": "28",
"moving_duration": 0,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "Вы на месте в 10:35.",
"name": "",
"subtype": "finish"
}
}
],
"pedestrian": false,
"route_id": "moscow-ctx-back.m1/ctxrouting/17726940000000.00000",
"schedules": [
{
"precise_time": "10:12",
"start_time": 36720,
"start_time_utc": 1772694720,
"type": "precise"
},
{
"precise_time": "10:24",
"start_time": 37440,
"start_time_utc": 1772695440,
"type": "precise"
},
{
"precise_time": "10:36",
"start_time": 38160,
"start_time_utc": 1772696160,
"type": "precise"
},
{
"precise_time": "10:49",
"start_time": 38940,
"start_time_utc": 1772696940,
"type": "precise"
}
],
"total_distance": 6054,
"total_duration": 2140,
"total_walkway_distance": "пешком 21 мин",
"transfer_count": 0,
"transport": [
"pedestrian",
"bus",
"trolleybus",
"tram",
"shuttle_bus",
"metro",
"suburban_train",
"funicular_railway",
"monorail",
"river_transport",
"cable_car",
"light_rail",
"premetro",
"light_metro",
"aeroexpress",
"mcd",
"mcc"
],
"waypoints": [
{
"combined": false,
"routes_names": [
"25"
],
"subtype": "tram"
}
]
}
]
Учёт пробок
По умолчанию при расчёте маршрутов для всех способов передвижения (кроме общественного транспорта) используются данные о пробках, актуальные на момент отправки запроса.
Вы можете построить маршрут на определённую дату и время. В этом случае будут использованы статистические данные о пробках, чтобы предсказать длительность маршрута. Детальные данные о пробках (например, цветовая индикация или уровень загруженности) в ответе API не предоставляются.
Чтобы указать время отправления для общественного транспорта, см. раздел Время отправления.
Пример построения автомобильного маршрута с учётом статистических пробок (на субботу 12 июля 2025 г. 02:00:00 GMT+3) и текущих пробок:
Чтобы рассчитать маршрут на нужную дату и время отправления, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:
-
points(обязательный параметр) — массив координат точек маршрута. Укажите минимум две точки: начальную и конечную. -
transport— способ передвижения. -
output— формат выдачи результата:summary— упрощённая выдача, в ответе только время и длина маршрута.detailed— полная выдача с геометрией маршрута.
-
locale— язык текстовых описаний элементов маршрута: русский. -
utc— дата и время в формате Unix. -
traffic_mode: statistics— построение маршрута с учётом статистических данных о пробках на указанное время.
Пример запроса:
curl --request POST \
--url 'https://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"type": "stop",
"lon": 37.582591,
"lat": 55.775364
},
{
"type": "stop",
"lon": 37.656625,
"lat": 55.765036
}
],
"transport": "driving",
"output": "detailed",
"locale": "ru",
"utc": 1752274800,
"traffic_mode": "statistics"
}'
Пример ответа:
response.json
{
"message": null,
"query": {
"locale": "ru",
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"traffic_mode": "statistics",
"transport": "driving",
"utc": 1752274800
},
"result": [
{
"algorithm": "без учёта пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": [
"highway"
],
"id": "14205612383477784854",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "8922150473039886074",
"outcoming_path": {
"distance": 30,
"duration": 9,
"geometry": [
{
"color": "no-traffic",
"length": 30,
"selection": "LINESTRING(37.583086 55.775486, 37.583150 55.775405, 37.583231 55.775307, 37.583253 55.775281, 37.583307 55.775231)",
"style": "normal"
}
],
"names": [
"площадь Тверская Застава"
]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево на ул. Лесная",
"icon": "crossroad_left",
"id": "12621808531989277634",
"outcoming_path": {
"distance": 406,
"duration": 129,
"geometry": [
{
"color": "no-traffic",
"length": 76,
"selection": "LINESTRING(37.583307 55.775231, 37.583561 55.775318, 37.583628 55.775341, 37.583734 55.775385, 37.583827 55.775434, 37.584035 55.775570, 37.584217 55.775689)",
"style": "normal"
},
{
"color": "no-traffic",
"length": 88,
"selection": "LINESTRING(37.584217 55.775689, 37.584347 55.775775, 37.584624 55.775956, 37.584979 55.776188, 37.585058 55.776240, 37.585154 55.776303)",
"style": "normal"
},
{
"color": "no-traffic",
"length": 242,
"selection": "LINESTRING(37.585154 55.776303, 37.585381 55.776355, 37.585568 55.776469, 37.585606 55.776493, 37.585928 55.776703, 37.586761 55.777249, 37.586856 55.777311, 37.586989 55.777398, 37.587695 55.777860, 37.587795 55.777926)",
"style": "normal"
}
],
"names": [
"Лесная"
]
},
"outcoming_path_comment": "400 м прямо",
"turn_angle": -92,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Александра Невского",
"icon": "crossroad_right",
"id": "11225819804146971562",
"outcoming_path": {
"distance": 987,
"duration": 193,
"geometry": [
{
"color": "no-traffic",
"length": 987,
"selection": "LINESTRING(37.587795 55.777926, 37.587857 55.777896, 37.588159 55.777750, 37.588473 55.777598, 37.588580 55.777546, 37.588953 55.777365, 37.589107 55.777290, 37.589488 55.777105, 37.589680 55.777012, 37.589762 55.776972, 37.590495 55.776617, 37.590578 55.776576, 37.590882 55.776429, 37.591177 55.776285, 37.591234 55.776258, 37.591311 55.776220, 37.591564 55.776098, 37.591859 55.775954, 37.591980 55.775878, 37.592157 55.775711, 37.592301 55.775575, 37.592408 55.775503, 37.592464 55.775451, 37.593157 55.774776, 37.593247 55.774725, 37.593407 55.774635, 37.593491 55.774586, 37.593856 55.774372, 37.594049 55.774259, 37.594318 55.774102, 37.594686 55.773886, 37.594774 55.773836, 37.594863 55.773783, 37.594953 55.773731, 37.595721 55.773282, 37.595961 55.773142, 37.596416 55.772876, 37.596750 55.772681, 37.596834 55.772632, 37.596908 55.772588, 37.597141 55.772452, 37.597349 55.772331, 37.597721 55.772113, 37.598051 55.771921, 37.598556 55.771625, 37.598820 55.771471, 37.598908 55.771419)",
"style": "normal"
}
],
"names": [
"Александра Невского"
]
},
"outcoming_path_comment": "1 км прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Оружейный переулок",
"icon": "crossroad_right",
"id": "1141159005863195079",
"outcoming_path": {
"distance": 89,
"duration": 13,
"geometry": [
{
"color": "no-traffic",
"length": 89,
"selection": "LINESTRING(37.598908 55.771419, 37.597742 55.770949)",
"style": "normal"
}
],
"names": [
"Оружейный переулок"
]
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 98,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Держитесь левее",
"icon": "crossroad_keep_left",
"id": "14053783176435217365",
"outcoming_path": {
"distance": 112,
"duration": 18,
"geometry": [
{
"color": "no-traffic",
"length": 112,
"selection": "LINESTRING(37.597742 55.770949, 37.597322 55.770779, 37.597245 55.770734, 37.597197 55.770689, 37.597175 55.770645, 37.597174 55.770599, 37.597186 55.770557, 37.597215 55.770514, 37.597261 55.770473, 37.597375 55.770397, 37.597450 55.770347, 37.597491 55.770320, 37.597716 55.770172)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": -29,
"turn_direction": "keep_left",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Садовая-Триумфальная",
"icon": "crossroad_left",
"id": "6504723339864720605",
"outcoming_path": {
"distance": 4041,
"duration": 351,
"geometry": [
{
"color": "no-traffic",
"length": 1308,
"selection": "LINESTRING(37.597716 55.770172, 37.597809 55.770140, 37.597831 55.770135, 37.597862 55.770132, 37.597883 55.770133, 37.597914 55.770137, 37.598008 55.770158, 37.598076 55.770192, 37.598210 55.770249, 37.599275 55.770728, 37.599882 55.770936, 37.600050 55.770989, 37.600407 55.771103, 37.600831 55.771230, 37.600914 55.771254, 37.600957 55.771272, 37.601329 55.771460, 37.602336 55.771763, 37.602421 55.771789, 37.602861 55.771922, 37.603929 55.772247, 37.604227 55.772338, 37.604516 55.772426, 37.605210 55.772564, 37.605213 55.772565, 37.605268 55.772575, 37.605728 55.772651, 37.605822 55.772664, 37.607062 55.772839, 37.607333 55.772877, 37.607382 55.772884, 37.608251 55.772986, 37.608986 55.773080, 37.609121 55.773096, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247, 37.611026 55.773277, 37.611498 55.773310, 37.612248 55.773363, 37.612442 55.773370, 37.613457 55.773408, 37.615054 55.773470, 37.617345 55.773557)",
"style": "normal"
},
{
"color": "no-traffic",
"length": 370,
"selection": "LINESTRING(37.617345 55.773557, 37.619000 55.773621, 37.619209 55.773628, 37.621035 55.773684, 37.621922 55.773690, 37.623161 55.773671, 37.623250 55.773668)",
"style": "bridge"
},
{
"color": "no-traffic",
"length": 2363,
"selection": "LINESTRING(37.623250 55.773668, 37.624510 55.773622, 37.625672 55.773548, 37.625906 55.773531, 37.626549 55.773483, 37.627213 55.773398, 37.627407 55.773378, 37.627898 55.773317, 37.628220 55.773274, 37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946, 37.631810 55.772768, 37.631859 55.772761, 37.632302 55.772699, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511, 37.635934 55.772276, 37.636482 55.772197, 37.636863 55.772130, 37.637246 55.772053, 37.637383 55.772024, 37.637746 55.771946, 37.638398 55.771787, 37.638671 55.771709, 37.639223 55.771539, 37.639458 55.771467, 37.640138 55.771258, 37.641596 55.770815, 37.642386 55.770573, 37.642720 55.770474, 37.642942 55.770406, 37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580, 37.645818 55.769531, 37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158, 37.647789 55.769017, 37.648564 55.768776, 37.649337 55.768557, 37.649691 55.768459, 37.649817 55.768424, 37.649886 55.768391, 37.650113 55.768283, 37.650280 55.768171, 37.651022 55.767635, 37.651497 55.767307, 37.651966 55.766988, 37.652654 55.766522, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923, 37.655597 55.764466, 37.655881 55.764258)",
"style": "normal"
}
],
"names": [
"Садовая-Триумфальная"
]
},
"outcoming_path_comment": "4 км прямо",
"turn_angle": -91,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "13812593039684576123",
"outcoming_path": {
"distance": 71,
"duration": 7,
"geometry": [
{
"color": "no-traffic",
"length": 71,
"selection": "LINESTRING(37.655881 55.764258, 37.655917 55.764246, 37.655955 55.764239, 37.655993 55.764237, 37.656027 55.764240, 37.656049 55.764245, 37.656067 55.764253, 37.656086 55.764271, 37.656095 55.764288, 37.656094 55.764310, 37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": [
"Садовая-Черногрязская"
]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "15799852541869148930",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"color": "no-traffic",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655867 55.764818)",
"style": "living_zone"
},
{
"color": "no-traffic",
"length": 12,
"selection": "LINESTRING(37.655867 55.764818, 37.656014 55.764887)",
"style": "archway"
},
{
"color": "no-traffic",
"length": 3,
"selection": "LINESTRING(37.656014 55.764887, 37.656064 55.764909)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "12524185127805569791",
"outcoming_path": {
"distance": 93,
"duration": 25,
"geometry": [
{
"color": "no-traffic",
"length": 93,
"selection": "LINESTRING(37.656064 55.764909, 37.656554 55.764570, 37.656591 55.764558, 37.656635 55.764560, 37.656674 55.764578, 37.656728 55.764601, 37.656741 55.764609, 37.656749 55.764617, 37.656755 55.764630, 37.656755 55.764641, 37.656749 55.764655, 37.656538 55.764857)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "6375895444807243269",
"outcoming_path": {
"distance": 21,
"duration": 6,
"geometry": [
{
"color": "no-traffic",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857, 37.656510 55.764857, 37.656485 55.764865, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": -46,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "17302704429133406006",
"outcoming_path": {
"distance": 18,
"duration": 5,
"geometry": [
{
"color": "no-traffic",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992, 37.656543 55.765075, 37.656553 55.765080)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "16377021944685554640",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 1.0,
"route_id": "moscow-cr-back.m1/carrouting/1772721063.684169",
"total_distance": 5904,
"total_duration": 765,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "5.9"
},
"ui_total_duration": "12 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"projected_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"transit": false
},
{
"original_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"projected_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"transit": false
}
]
},
{
"algorithm": "без учёта пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": [
"highway"
],
"id": "5085322762957958483",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "10633020054776893470",
"outcoming_path": {
"distance": 30,
"duration": 9,
"geometry": [
{
"color": "no-traffic",
"length": 30,
"selection": "LINESTRING(37.583086 55.775486, 37.583150 55.775405, 37.583231 55.775307, 37.583253 55.775281, 37.583307 55.775231)",
"style": "normal"
}
],
"names": [
"площадь Тверская Застава"
]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "7184837568609070591",
"outcoming_path": {
"distance": 164,
"duration": 64,
"geometry": [
{
"color": "no-traffic",
"length": 76,
"selection": "LINESTRING(37.583307 55.775231, 37.583561 55.775318, 37.583628 55.775341, 37.583734 55.775385, 37.583827 55.775434, 37.584035 55.775570, 37.584217 55.775689)",
"style": "normal"
},
{
"color": "no-traffic",
"length": 88,
"selection": "LINESTRING(37.584217 55.775689, 37.584347 55.775775, 37.584624 55.775956, 37.584979 55.776188, 37.585058 55.776240, 37.585154 55.776303)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -92,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. 1-я Тверская-Ямская",
"icon": "crossroad_right",
"id": "14194052280809442212",
"outcoming_path": {
"distance": 1256,
"duration": 126,
"geometry": [
{
"color": "no-traffic",
"length": 1256,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586214 55.775714, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126, 37.592026 55.772311, 37.592333 55.772132, 37.594081 55.771108, 37.594993 55.770574, 37.595598 55.770219, 37.595740 55.770136, 37.595903 55.770019, 37.596125 55.769859, 37.596682 55.769461, 37.596711 55.769445, 37.597332 55.769104, 37.598026 55.768722, 37.599143 55.768109)",
"style": "normal"
}
],
"names": [
"1-я Тверская-Ямская"
]
},
"outcoming_path_comment": "1.3 км прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Благовещенский переулок",
"icon": "crossroad_right",
"id": "10942342637341775452",
"outcoming_path": {
"distance": 282,
"duration": 67,
"geometry": [
{
"color": "no-traffic",
"length": 282,
"selection": "LINESTRING(37.599143 55.768109, 37.598984 55.768020, 37.598729 55.767877, 37.598486 55.767739, 37.598367 55.767674, 37.598289 55.767630, 37.598123 55.767537, 37.598037 55.767479, 37.597972 55.767421, 37.597911 55.767336, 37.597851 55.767189, 37.597840 55.767160, 37.597813 55.767093, 37.597784 55.767047, 37.597727 55.767009, 37.597296 55.766836, 37.596096 55.766356, 37.595993 55.766315)",
"style": "normal"
}
],
"names": [
"Благовещенский переулок"
]
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Ермолаевский переулок",
"icon": "crossroad_right",
"id": "17844571478167478054",
"outcoming_path": {
"distance": 165,
"duration": 40,
"geometry": [
{
"color": "no-traffic",
"length": 165,
"selection": "LINESTRING(37.595993 55.766315, 37.595925 55.766348, 37.595858 55.766362, 37.595846 55.766364, 37.595702 55.766372, 37.595123 55.766406, 37.595074 55.766409, 37.594998 55.766409, 37.594939 55.766408, 37.594813 55.766399, 37.594681 55.766371, 37.594660 55.766363, 37.593957 55.766079, 37.593699 55.765975, 37.593599 55.765935)",
"style": "normal"
}
],
"names": [
"Ермолаевский переулок"
]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 67,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. аллея Архитектора Шехтеля",
"icon": "crossroad_right",
"id": "713931841873448089",
"outcoming_path": {
"distance": 130,
"duration": 39,
"geometry": [
{
"color": "no-traffic",
"length": 130,
"selection": "LINESTRING(37.593599 55.765935, 37.593518 55.765985, 37.592996 55.766304, 37.592626 55.766531, 37.592353 55.766698, 37.592175 55.766807)",
"style": "normal"
}
],
"names": [
"аллея Архитектора Шехтеля"
]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 83,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Большая Садовая",
"icon": "crossroad_right",
"id": "2439046089274427980",
"outcoming_path": {
"distance": 4544,
"duration": 386,
"geometry": [
{
"color": "no-traffic",
"length": 319,
"selection": "LINESTRING(37.592175 55.766807, 37.592529 55.767054, 37.592988 55.767375, 37.593622 55.767817, 37.594008 55.768087, 37.594339 55.768318, 37.594632 55.768511, 37.594932 55.768694, 37.595214 55.768858, 37.595486 55.769004)",
"style": "normal"
},
{
"color": "no-traffic",
"length": 196,
"selection": "LINESTRING(37.595486 55.769004, 37.596007 55.769269, 37.596454 55.769495, 37.596797 55.769669, 37.597193 55.769869, 37.597838 55.770195)",
"style": "tunnel"
},
{
"color": "no-traffic",
"length": 1296,
"selection": "LINESTRING(37.597838 55.770195, 37.598115 55.770332, 37.598389 55.770458, 37.598674 55.770579, 37.599125 55.770758, 37.599606 55.770937, 37.599820 55.771001, 37.600450 55.771189, 37.600775 55.771293, 37.601329 55.771460, 37.602336 55.771763, 37.602421 55.771789, 37.602861 55.771922, 37.603929 55.772247, 37.604227 55.772338, 37.604516 55.772426, 37.605210 55.772564, 37.605213 55.772565, 37.605268 55.772575, 37.605728 55.772651, 37.605822 55.772664, 37.607062 55.772839, 37.607333 55.772877, 37.607382 55.772884, 37.608251 55.772986, 37.608986 55.773080, 37.609121 55.773096, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247, 37.611026 55.773277, 37.611498 55.773310, 37.612248 55.773363, 37.612442 55.773370, 37.613457 55.773408, 37.615054 55.773470, 37.617345 55.773557)",
"style": "normal"
},
{
"color": "no-traffic",
"length": 370,
"selection": "LINESTRING(37.617345 55.773557, 37.619000 55.773621, 37.619209 55.773628, 37.621035 55.773684, 37.621922 55.773690, 37.623161 55.773671, 37.623250 55.773668)",
"style": "bridge"
},
{
"color": "no-traffic",
"length": 2363,
"selection": "LINESTRING(37.623250 55.773668, 37.624510 55.773622, 37.625672 55.773548, 37.625906 55.773531, 37.626549 55.773483, 37.627213 55.773398, 37.627407 55.773378, 37.627898 55.773317, 37.628220 55.773274, 37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946, 37.631810 55.772768, 37.631859 55.772761, 37.632302 55.772699, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511, 37.635934 55.772276, 37.636482 55.772197, 37.636863 55.772130, 37.637246 55.772053, 37.637383 55.772024, 37.637746 55.771946, 37.638398 55.771787, 37.638671 55.771709, 37.639223 55.771539, 37.639458 55.771467, 37.640138 55.771258, 37.641596 55.770815, 37.642386 55.770573, 37.642720 55.770474, 37.642942 55.770406, 37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580, 37.645818 55.769531, 37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158, 37.647789 55.769017, 37.648564 55.768776, 37.649337 55.768557, 37.649691 55.768459, 37.649817 55.768424, 37.649886 55.768391, 37.650113 55.768283, 37.650280 55.768171, 37.651022 55.767635, 37.651497 55.767307, 37.651966 55.766988, 37.652654 55.766522, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923, 37.655597 55.764466, 37.655881 55.764258)",
"style": "normal"
}
],
"names": [
"Большая Садовая"
]
},
"outcoming_path_comment": "4.5 км прямо",
"turn_angle": 82,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "5543650447646224258",
"outcoming_path": {
"distance": 71,
"duration": 7,
"geometry": [
{
"color": "no-traffic",
"length": 71,
"selection": "LINESTRING(37.655881 55.764258, 37.655917 55.764246, 37.655955 55.764239, 37.655993 55.764237, 37.656027 55.764240, 37.656049 55.764245, 37.656067 55.764253, 37.656086 55.764271, 37.656095 55.764288, 37.656094 55.764310, 37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": [
"Садовая-Черногрязская"
]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "14852690327322155973",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"color": "no-traffic",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655867 55.764818)",
"style": "living_zone"
},
{
"color": "no-traffic",
"length": 12,
"selection": "LINESTRING(37.655867 55.764818, 37.656014 55.764887)",
"style": "archway"
},
{
"color": "no-traffic",
"length": 3,
"selection": "LINESTRING(37.656014 55.764887, 37.656064 55.764909)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "2092770242319522771",
"outcoming_path": {
"distance": 93,
"duration": 25,
"geometry": [
{
"color": "no-traffic",
"length": 93,
"selection": "LINESTRING(37.656064 55.764909, 37.656554 55.764570, 37.656591 55.764558, 37.656635 55.764560, 37.656674 55.764578, 37.656728 55.764601, 37.656741 55.764609, 37.656749 55.764617, 37.656755 55.764630, 37.656755 55.764641, 37.656749 55.764655, 37.656538 55.764857)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "4346641112875352636",
"outcoming_path": {
"distance": 21,
"duration": 6,
"geometry": [
{
"color": "no-traffic",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857, 37.656510 55.764857, 37.656485 55.764865, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": -46,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "17591186491196950298",
"outcoming_path": {
"distance": 18,
"duration": 5,
"geometry": [
{
"color": "no-traffic",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992, 37.656543 55.765075, 37.656553 55.765080)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "16377021944685554640",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 1.0,
"route_id": "moscow-cr-back.m1/carrouting/1772721063.685072",
"total_distance": 6810,
"total_duration": 784,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "6.8"
},
"ui_total_duration": "13 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"projected_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"transit": false
},
{
"original_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"projected_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}
Учёт дорожных перекрытий
По умолчанию при расчёте маршрута используются данные о дорожных перекрытиях, актуальные на момент отправки запроса, и перекрытые участки дорог избегаются. Вы можете отключить эту возможность.
Учёт дорожных перекрытий при построении маршрутов на общественном транспорте недоступен.
Чтобы при построении маршрута могли использоваться перекрытые дороги, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:
-
points(обязательный параметр) — массив координат точек маршрута. Укажите минимум две точки: начальную и конечную. -
transport— способ передвижения. -
output— формат выдачи результата:summary— упрощённая выдача, в ответе только время и длина маршрута.detailed— полная выдача с геометрией маршрута.
-
locale— язык текстовых описаний элементов маршрута: русский. -
allow_locked_roads: true— учитывать перекрытые дороги.
Пример запроса:
curl --request POST \
--url 'https://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"type": "stop",
"lon": 37.582591,
"lat": 55.775364
},
{
"type": "stop",
"lon": 37.656625,
"lat": 55.765036
}
],
"transport": "driving",
"output": "detailed",
"locale": "ru",
"allow_locked_roads": true
}'
Пример ответа:
response.json
{
"message": null,
"query": {
"allow_locked_roads": true,
"locale": "ru",
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"transport": "driving"
},
"result": [
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": [
"highway"
],
"id": "6720981923466558087",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "16383921565962762453",
"outcoming_path": {
"distance": 509,
"duration": 321,
"geometry": [
{
"color": "fast",
"length": 30,
"selection": "LINESTRING(37.583086 55.775486, 37.583150 55.775405, 37.583231 55.775307, 37.583253 55.775281, 37.583307 55.775231)",
"style": "normal"
},
{
"color": "slow",
"length": 479,
"selection": "LINESTRING(37.583307 55.775231, 37.583444 55.775139, 37.583539 55.775074, 37.583571 55.775051, 37.583758 55.774941, 37.584051 55.774769, 37.584528 55.774490, 37.584715 55.774380, 37.584995 55.774215, 37.585056 55.774180, 37.585086 55.774162, 37.585701 55.773802, 37.586019 55.773616, 37.586202 55.773508, 37.586336 55.773430, 37.586461 55.773356, 37.586789 55.773163, 37.587075 55.772996, 37.587113 55.772973, 37.587238 55.772900, 37.587446 55.772778, 37.587668 55.772648, 37.587824 55.772557, 37.588158 55.772360, 37.588212 55.772329, 37.588581 55.772112, 37.588708 55.772038)",
"style": "normal"
}
],
"names": [
"площадь Тверская Застава"
]
},
"outcoming_path_comment": "500 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево на ул. Васильевская",
"icon": "crossroad_left",
"id": "13467084094126842168",
"outcoming_path": {
"distance": 406,
"duration": 217,
"geometry": [
{
"color": "slow",
"length": 158,
"selection": "LINESTRING(37.588708 55.772038, 37.588824 55.772103, 37.588938 55.772168, 37.589561 55.772519, 37.589644 55.772566, 37.589753 55.772628, 37.590258 55.772912, 37.590321 55.772949, 37.590525 55.773064)",
"style": "normal"
},
{
"color": "normal",
"length": 9,
"selection": "LINESTRING(37.590525 55.773064, 37.590635 55.773126)",
"style": "normal"
},
{
"color": "slow",
"length": 63,
"selection": "LINESTRING(37.590635 55.773126, 37.590786 55.773209, 37.590890 55.773267, 37.591282 55.773479, 37.591366 55.773525)",
"style": "normal"
},
{
"color": "normal",
"length": 167,
"selection": "LINESTRING(37.591366 55.773525, 37.591436 55.773563, 37.591452 55.773572, 37.591751 55.773734, 37.592280 55.774022, 37.592386 55.774079, 37.592468 55.774124, 37.593101 55.774468, 37.593299 55.774576)",
"style": "normal"
},
{
"color": "fast",
"length": 9,
"selection": "LINESTRING(37.593299 55.774576, 37.593407 55.774635)",
"style": "normal"
}
],
"names": [
"Васильевская"
]
},
"outcoming_path_comment": "400 м прямо",
"turn_angle": -91,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. 4-я Тверская-Ямская",
"icon": "crossroad_right",
"id": "9991767435540129229",
"outcoming_path": {
"distance": 488,
"duration": 488,
"geometry": [
{
"color": "normal",
"length": 121,
"selection": "LINESTRING(37.593407 55.774635, 37.593491 55.774586, 37.593856 55.774372, 37.594049 55.774259, 37.594318 55.774102, 37.594686 55.773886, 37.594774 55.773836)",
"style": "normal"
},
{
"color": "slow",
"length": 184,
"selection": "LINESTRING(37.594774 55.773836, 37.594863 55.773783, 37.594953 55.773731, 37.595721 55.773282, 37.595961 55.773142, 37.596416 55.772876, 37.596750 55.772681, 37.596834 55.772632)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 183,
"selection": "LINESTRING(37.596834 55.772632, 37.596908 55.772588, 37.597141 55.772452, 37.597349 55.772331, 37.597721 55.772113, 37.598051 55.771921, 37.598556 55.771625, 37.598820 55.771471, 37.598908 55.771419)",
"style": "normal"
}
],
"names": [
"4-я Тверская-Ямская"
]
},
"outcoming_path_comment": "500 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Оружейный переулок",
"icon": "crossroad_right",
"id": "5123684934198368040",
"outcoming_path": {
"distance": 89,
"duration": 94,
"geometry": [
{
"color": "slow-jams",
"length": 89,
"selection": "LINESTRING(37.598908 55.771419, 37.597742 55.770949)",
"style": "normal"
}
],
"names": [
"Оружейный переулок"
]
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 98,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Держитесь левее",
"icon": "crossroad_keep_left",
"id": "14013430757079448016",
"outcoming_path": {
"distance": 112,
"duration": 127,
"geometry": [
{
"color": "slow-jams",
"length": 81,
"selection": "LINESTRING(37.597742 55.770949, 37.597322 55.770779, 37.597245 55.770734, 37.597197 55.770689, 37.597175 55.770645, 37.597174 55.770599, 37.597186 55.770557, 37.597215 55.770514, 37.597261 55.770473, 37.597375 55.770397)",
"style": "normal"
},
{
"color": "slow",
"length": 10,
"selection": "LINESTRING(37.597375 55.770397, 37.597450 55.770347, 37.597491 55.770320)",
"style": "normal"
},
{
"color": "fast",
"length": 21,
"selection": "LINESTRING(37.597491 55.770320, 37.597716 55.770172)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": -29,
"turn_direction": "keep_left",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Садовая-Триумфальная",
"icon": "crossroad_left",
"id": "2517388184856573542",
"outcoming_path": {
"distance": 4041,
"duration": 599,
"geometry": [
{
"color": "slow",
"length": 19,
"selection": "LINESTRING(37.597716 55.770172, 37.597809 55.770140, 37.597831 55.770135, 37.597862 55.770132, 37.597883 55.770133, 37.597914 55.770137, 37.598008 55.770158)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 212,
"selection": "LINESTRING(37.598008 55.770158, 37.598076 55.770192, 37.598210 55.770249, 37.599275 55.770728, 37.599882 55.770936, 37.600050 55.770989, 37.600407 55.771103, 37.600831 55.771230)",
"style": "normal"
},
{
"color": "normal",
"length": 1077,
"selection": "LINESTRING(37.600831 55.771230, 37.600914 55.771254, 37.600957 55.771272, 37.601329 55.771460, 37.602336 55.771763, 37.602421 55.771789, 37.602861 55.771922, 37.603929 55.772247, 37.604227 55.772338, 37.604516 55.772426, 37.605210 55.772564, 37.605213 55.772565, 37.605268 55.772575, 37.605728 55.772651, 37.605822 55.772664, 37.607062 55.772839, 37.607333 55.772877, 37.607382 55.772884, 37.608251 55.772986, 37.608986 55.773080, 37.609121 55.773096, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247, 37.611026 55.773277, 37.611498 55.773310, 37.612248 55.773363, 37.612442 55.773370, 37.613457 55.773408, 37.615054 55.773470, 37.617345 55.773557)",
"style": "normal"
},
{
"color": "fast",
"length": 370,
"selection": "LINESTRING(37.617345 55.773557, 37.619000 55.773621, 37.619209 55.773628, 37.621035 55.773684, 37.621922 55.773690, 37.623161 55.773671, 37.623250 55.773668)",
"style": "bridge"
},
{
"color": "fast",
"length": 250,
"selection": "LINESTRING(37.623250 55.773668, 37.624510 55.773622, 37.625672 55.773548, 37.625906 55.773531, 37.626549 55.773483, 37.627213 55.773398)",
"style": "normal"
},
{
"color": "normal",
"length": 212,
"selection": "LINESTRING(37.627213 55.773398, 37.627407 55.773378, 37.627898 55.773317, 37.628220 55.773274, 37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946)",
"style": "normal"
},
{
"color": "slow",
"length": 207,
"selection": "LINESTRING(37.630537 55.772946, 37.631810 55.772768, 37.631859 55.772761, 37.632302 55.772699, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511)",
"style": "normal"
},
{
"color": "fast",
"length": 231,
"selection": "LINESTRING(37.633809 55.772511, 37.635934 55.772276, 37.636482 55.772197, 37.636863 55.772130, 37.637246 55.772053, 37.637383 55.772024)",
"style": "normal"
},
{
"color": "normal",
"length": 429,
"selection": "LINESTRING(37.637383 55.772024, 37.637746 55.771946, 37.638398 55.771787, 37.638671 55.771709, 37.639223 55.771539, 37.639458 55.771467, 37.640138 55.771258, 37.641596 55.770815, 37.642386 55.770573, 37.642720 55.770474, 37.642942 55.770406, 37.643525 55.770234)",
"style": "normal"
},
{
"color": "fast",
"length": 941,
"selection": "LINESTRING(37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580, 37.645818 55.769531, 37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158, 37.647789 55.769017, 37.648564 55.768776, 37.649337 55.768557, 37.649691 55.768459, 37.649817 55.768424, 37.649886 55.768391, 37.650113 55.768283, 37.650280 55.768171, 37.651022 55.767635, 37.651497 55.767307, 37.651966 55.766988, 37.652654 55.766522, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923)",
"style": "normal"
},
{
"color": "normal",
"length": 93,
"selection": "LINESTRING(37.654967 55.764923, 37.655597 55.764466, 37.655881 55.764258)",
"style": "normal"
}
],
"names": [
"Садовая-Триумфальная"
]
},
"outcoming_path_comment": "4 км прямо",
"turn_angle": -91,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "7878064450872093194",
"outcoming_path": {
"distance": 71,
"duration": 43,
"geometry": [
{
"color": "fast",
"length": 22,
"selection": "LINESTRING(37.655881 55.764258, 37.655917 55.764246, 37.655955 55.764239, 37.655993 55.764237, 37.656027 55.764240, 37.656049 55.764245, 37.656067 55.764253, 37.656086 55.764271, 37.656095 55.764288, 37.656094 55.764310, 37.656076 55.764339)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 49,
"selection": "LINESTRING(37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": [
"Садовая-Черногрязская"
]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "12413981170514807134",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655867 55.764818)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 12,
"selection": "LINESTRING(37.655867 55.764818, 37.656014 55.764887)",
"style": "archway"
},
{
"color": "ignore",
"length": 3,
"selection": "LINESTRING(37.656014 55.764887, 37.656064 55.764909)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "434804409375755379",
"outcoming_path": {
"distance": 93,
"duration": 26,
"geometry": [
{
"color": "ignore",
"length": 93,
"selection": "LINESTRING(37.656064 55.764909, 37.656554 55.764570, 37.656591 55.764558, 37.656635 55.764560, 37.656674 55.764578, 37.656728 55.764601, 37.656741 55.764609, 37.656749 55.764617, 37.656755 55.764630, 37.656755 55.764641, 37.656749 55.764655, 37.656538 55.764857)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "12048749331744205979",
"outcoming_path": {
"distance": 21,
"duration": 6,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857, 37.656510 55.764857, 37.656485 55.764865, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": -46,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "5018264536795560824",
"outcoming_path": {
"distance": 18,
"duration": 5,
"geometry": [
{
"color": "ignore",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992, 37.656543 55.765075, 37.656553 55.765080)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "16377021944685554640",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m9/carrouting/1772721177.448239",
"total_distance": 5884,
"total_duration": 1938,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "5.9"
},
"ui_total_duration": "32 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"projected_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"transit": false
},
{
"original_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"projected_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": [
"highway"
],
"id": "9068282125901496701",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "10815760082894142119",
"outcoming_path": {
"distance": 1018,
"duration": 524,
"geometry": [
{
"color": "fast",
"length": 30,
"selection": "LINESTRING(37.583086 55.775486, 37.583150 55.775405, 37.583231 55.775307, 37.583253 55.775281, 37.583307 55.775231)",
"style": "normal"
},
{
"color": "slow",
"length": 479,
"selection": "LINESTRING(37.583307 55.775231, 37.583444 55.775139, 37.583539 55.775074, 37.583571 55.775051, 37.583758 55.774941, 37.584051 55.774769, 37.584528 55.774490, 37.584715 55.774380, 37.584995 55.774215, 37.585056 55.774180, 37.585086 55.774162, 37.585701 55.773802, 37.586019 55.773616, 37.586202 55.773508, 37.586336 55.773430, 37.586461 55.773356, 37.586789 55.773163, 37.587075 55.772996, 37.587113 55.772973, 37.587238 55.772900, 37.587446 55.772778, 37.587668 55.772648, 37.587824 55.772557, 37.588158 55.772360, 37.588212 55.772329, 37.588581 55.772112, 37.588708 55.772038)",
"style": "normal"
},
{
"color": "normal",
"length": 105,
"selection": "LINESTRING(37.588708 55.772038, 37.588822 55.771970, 37.589876 55.771353)",
"style": "normal"
},
{
"color": "slow",
"length": 6,
"selection": "LINESTRING(37.589876 55.771353, 37.589952 55.771308)",
"style": "normal"
},
{
"color": "normal",
"length": 48,
"selection": "LINESTRING(37.589952 55.771308, 37.590055 55.771248, 37.590487 55.770994)",
"style": "normal"
},
{
"color": "fast",
"length": 137,
"selection": "LINESTRING(37.590487 55.770994, 37.590573 55.770943, 37.590753 55.770838, 37.591406 55.770455, 37.592022 55.770093)",
"style": "normal"
},
{
"color": "normal",
"length": 7,
"selection": "LINESTRING(37.592022 55.770093, 37.592101 55.770047)",
"style": "normal"
},
{
"color": "slow",
"length": 206,
"selection": "LINESTRING(37.592101 55.770047, 37.592212 55.769983, 37.592449 55.769843, 37.592770 55.769654, 37.593209 55.769397, 37.593661 55.769131, 37.593700 55.769108, 37.593817 55.769040, 37.593994 55.768937, 37.594028 55.768916, 37.594239 55.768793, 37.594289 55.768763, 37.594431 55.768680)",
"style": "normal"
}
],
"names": [
"площадь Тверская Застава"
]
},
"outcoming_path_comment": "1 км прямо",
"type": "begin"
},
{
"comment": "Поворот направо на ул. Большая Садовая",
"icon": "crossroad_right",
"id": "11151185193317129363",
"outcoming_path": {
"distance": 1626,
"duration": 300,
"geometry": [
{
"color": "slow",
"length": 170,
"selection": "LINESTRING(37.594431 55.768680, 37.594346 55.768628, 37.593543 55.768059, 37.593308 55.767862, 37.592814 55.767453)",
"style": "normal"
},
{
"color": "normal",
"length": 1049,
"selection": "LINESTRING(37.592814 55.767453, 37.592717 55.767386, 37.592365 55.767140, 37.591674 55.766659, 37.591448 55.766501, 37.591024 55.766200, 37.590734 55.765995, 37.590646 55.765932, 37.590323 55.765704, 37.590212 55.765625, 37.589852 55.765370, 37.589556 55.765142, 37.589238 55.764885, 37.588929 55.764616, 37.588592 55.764313, 37.588277 55.764015, 37.588007 55.763744, 37.587735 55.763438, 37.587531 55.763196, 37.587417 55.763061, 37.587347 55.762978, 37.586968 55.762487, 37.586911 55.762414, 37.586792 55.762252, 37.586305 55.761590, 37.586265 55.761535, 37.585827 55.760940, 37.585436 55.760408, 37.585400 55.760360, 37.585361 55.760297, 37.585229 55.760091, 37.584994 55.759724, 37.584986 55.759712, 37.584873 55.759517, 37.584848 55.759474, 37.584719 55.759224, 37.584702 55.759192)",
"style": "normal"
},
{
"color": "normal",
"length": 41,
"selection": "LINESTRING(37.584702 55.759192, 37.584583 55.758920, 37.584552 55.758831)",
"style": "normal"
},
{
"color": "normal",
"length": 168,
"selection": "LINESTRING(37.584552 55.758831, 37.584540 55.758798, 37.584481 55.758631, 37.584447 55.758512, 37.584395 55.758321, 37.584344 55.758079, 37.584186 55.757315)",
"style": "normal"
},
{
"color": "fast",
"length": 198,
"selection": "LINESTRING(37.584186 55.757315, 37.584176 55.757269, 37.584125 55.757023, 37.584043 55.756629, 37.583822 55.755538)",
"style": "normal"
}
],
"names": [
"Большая Садовая"
]
},
"outcoming_path_comment": "1.6 км прямо",
"turn_angle": 83,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Держитесь правее на ул. Новинский бульвар",
"icon": "crossroad_keep_right",
"id": "7411332514325230328",
"outcoming_path": {
"distance": 287,
"duration": 41,
"geometry": [
{
"color": "normal",
"length": 145,
"selection": "LINESTRING(37.583822 55.755538, 37.583700 55.755320, 37.583677 55.755270, 37.583651 55.755185, 37.583580 55.754874, 37.583460 55.754497, 37.583368 55.754261)",
"style": "normal"
},
{
"color": "fast",
"length": 99,
"selection": "LINESTRING(37.583368 55.754261, 37.583347 55.754147, 37.583324 55.754018, 37.583209 55.753360)",
"style": "normal"
},
{
"color": "normal",
"length": 43,
"selection": "LINESTRING(37.583209 55.753360, 37.583139 55.752970)",
"style": "normal"
}
],
"names": [
"Новинский бульвар"
]
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 10,
"turn_direction": "keep_right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Новинский бульвар",
"icon": "turn_over_right_hand",
"id": "2084792201486988762",
"outcoming_path": {
"distance": 91,
"duration": 15,
"geometry": [
{
"color": "fast",
"length": 45,
"selection": "LINESTRING(37.583139 55.752970, 37.583154 55.752938, 37.583184 55.752911, 37.583221 55.752892, 37.583281 55.752879, 37.583339 55.752872, 37.583584 55.752866, 37.583623 55.752870, 37.583655 55.752880, 37.583683 55.752898, 37.583702 55.752933)",
"style": "normal"
},
{
"color": "normal",
"length": 46,
"selection": "LINESTRING(37.583702 55.752933, 37.583775 55.753348)",
"style": "normal"
}
],
"names": [
"Новинский бульвар"
]
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Держитесь левее на ул. Новинский бульвар",
"icon": "crossroad_keep_left",
"id": "3956517852871980919",
"outcoming_path": {
"distance": 6154,
"duration": 1028,
"geometry": [
{
"color": "normal",
"length": 215,
"selection": "LINESTRING(37.583775 55.753348, 37.584019 55.754613, 37.584049 55.754877, 37.584040 55.754980, 37.584014 55.755103, 37.583987 55.755277)",
"style": "normal"
},
{
"color": "slow",
"length": 1714,
"selection": "LINESTRING(37.583987 55.755277, 37.583989 55.755285, 37.584368 55.757099, 37.584373 55.757134, 37.584393 55.757231, 37.584599 55.758224, 37.584616 55.758305, 37.584701 55.758610, 37.584799 55.758885, 37.584902 55.759123, 37.584918 55.759161, 37.584980 55.759280, 37.585062 55.759437, 37.585108 55.759517, 37.585197 55.759670, 37.585321 55.759863, 37.585480 55.760112, 37.585610 55.760316, 37.585641 55.760359, 37.585860 55.760655, 37.586396 55.761385, 37.586592 55.761651, 37.586717 55.761822, 37.586860 55.762016, 37.587004 55.762212, 37.587116 55.762364, 37.587445 55.762789, 37.587551 55.762927, 37.587782 55.763201, 37.587849 55.763280, 37.587936 55.763384, 37.588134 55.763606, 37.588203 55.763684, 37.588416 55.763898, 37.588471 55.763953, 37.588784 55.764248, 37.588984 55.764428, 37.589118 55.764549, 37.589422 55.764814, 37.589738 55.765068, 37.590030 55.765294, 37.590045 55.765304, 37.590722 55.765784, 37.590908 55.765916, 37.591349 55.766228, 37.591622 55.766422, 37.591802 55.766547, 37.591951 55.766651, 37.592175 55.766807, 37.592529 55.767054, 37.592988 55.767375, 37.593622 55.767817, 37.594008 55.768087, 37.594339 55.768318, 37.594632 55.768511, 37.594932 55.768694, 37.595214 55.768858, 37.595486 55.769004)",
"style": "normal"
},
{
"color": "slow",
"length": 81,
"selection": "LINESTRING(37.595486 55.769004, 37.596007 55.769269, 37.596454 55.769495)",
"style": "tunnel"
},
{
"color": "normal",
"length": 115,
"selection": "LINESTRING(37.596454 55.769495, 37.596797 55.769669, 37.597193 55.769869, 37.597838 55.770195)",
"style": "tunnel"
},
{
"color": "slow",
"length": 259,
"selection": "LINESTRING(37.597838 55.770195, 37.598115 55.770332, 37.598389 55.770458, 37.598674 55.770579, 37.599125 55.770758, 37.599606 55.770937, 37.599820 55.771001, 37.600450 55.771189, 37.600775 55.771293, 37.601329 55.771460)",
"style": "normal"
},
{
"color": "normal",
"length": 1037,
"selection": "LINESTRING(37.601329 55.771460, 37.602336 55.771763, 37.602421 55.771789, 37.602861 55.771922, 37.603929 55.772247, 37.604227 55.772338, 37.604516 55.772426, 37.605210 55.772564, 37.605213 55.772565, 37.605268 55.772575, 37.605728 55.772651, 37.605822 55.772664, 37.607062 55.772839, 37.607333 55.772877, 37.607382 55.772884, 37.608251 55.772986, 37.608986 55.773080, 37.609121 55.773096, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247, 37.611026 55.773277, 37.611498 55.773310, 37.612248 55.773363, 37.612442 55.773370, 37.613457 55.773408, 37.615054 55.773470, 37.617345 55.773557)",
"style": "normal"
},
{
"color": "fast",
"length": 370,
"selection": "LINESTRING(37.617345 55.773557, 37.619000 55.773621, 37.619209 55.773628, 37.621035 55.773684, 37.621922 55.773690, 37.623161 55.773671, 37.623250 55.773668)",
"style": "bridge"
},
{
"color": "fast",
"length": 250,
"selection": "LINESTRING(37.623250 55.773668, 37.624510 55.773622, 37.625672 55.773548, 37.625906 55.773531, 37.626549 55.773483, 37.627213 55.773398)",
"style": "normal"
},
{
"color": "normal",
"length": 212,
"selection": "LINESTRING(37.627213 55.773398, 37.627407 55.773378, 37.627898 55.773317, 37.628220 55.773274, 37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946)",
"style": "normal"
},
{
"color": "slow",
"length": 207,
"selection": "LINESTRING(37.630537 55.772946, 37.631810 55.772768, 37.631859 55.772761, 37.632302 55.772699, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511)",
"style": "normal"
},
{
"color": "fast",
"length": 231,
"selection": "LINESTRING(37.633809 55.772511, 37.635934 55.772276, 37.636482 55.772197, 37.636863 55.772130, 37.637246 55.772053, 37.637383 55.772024)",
"style": "normal"
},
{
"color": "normal",
"length": 429,
"selection": "LINESTRING(37.637383 55.772024, 37.637746 55.771946, 37.638398 55.771787, 37.638671 55.771709, 37.639223 55.771539, 37.639458 55.771467, 37.640138 55.771258, 37.641596 55.770815, 37.642386 55.770573, 37.642720 55.770474, 37.642942 55.770406, 37.643525 55.770234)",
"style": "normal"
},
{
"color": "fast",
"length": 941,
"selection": "LINESTRING(37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580, 37.645818 55.769531, 37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158, 37.647789 55.769017, 37.648564 55.768776, 37.649337 55.768557, 37.649691 55.768459, 37.649817 55.768424, 37.649886 55.768391, 37.650113 55.768283, 37.650280 55.768171, 37.651022 55.767635, 37.651497 55.767307, 37.651966 55.766988, 37.652654 55.766522, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923)",
"style": "normal"
},
{
"color": "normal",
"length": 93,
"selection": "LINESTRING(37.654967 55.764923, 37.655597 55.764466, 37.655881 55.764258)",
"style": "normal"
}
],
"names": [
"Новинский бульвар"
]
},
"outcoming_path_comment": "6.2 км прямо",
"turn_angle": 0,
"turn_direction": "keep_left",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "5383909884643381117",
"outcoming_path": {
"distance": 71,
"duration": 45,
"geometry": [
{
"color": "fast",
"length": 22,
"selection": "LINESTRING(37.655881 55.764258, 37.655917 55.764246, 37.655955 55.764239, 37.655993 55.764237, 37.656027 55.764240, 37.656049 55.764245, 37.656067 55.764253, 37.656086 55.764271, 37.656095 55.764288, 37.656094 55.764310, 37.656076 55.764339)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 49,
"selection": "LINESTRING(37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": [
"Садовая-Черногрязская"
]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "7925950594158244116",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655867 55.764818)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 12,
"selection": "LINESTRING(37.655867 55.764818, 37.656014 55.764887)",
"style": "archway"
},
{
"color": "ignore",
"length": 3,
"selection": "LINESTRING(37.656014 55.764887, 37.656064 55.764909)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "4301360880958544739",
"outcoming_path": {
"distance": 93,
"duration": 27,
"geometry": [
{
"color": "ignore",
"length": 93,
"selection": "LINESTRING(37.656064 55.764909, 37.656554 55.764570, 37.656591 55.764558, 37.656635 55.764560, 37.656674 55.764578, 37.656728 55.764601, 37.656741 55.764609, 37.656749 55.764617, 37.656755 55.764630, 37.656755 55.764641, 37.656749 55.764655, 37.656538 55.764857)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "3501550184128254468",
"outcoming_path": {
"distance": 21,
"duration": 6,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857, 37.656510 55.764857, 37.656485 55.764865, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": -46,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "16196333061405679318",
"outcoming_path": {
"distance": 18,
"duration": 5,
"geometry": [
{
"color": "ignore",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992, 37.656543 55.765075, 37.656553 55.765080)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "16377021944685554640",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m9/carrouting/1772721177.449716",
"total_distance": 9415,
"total_duration": 2001,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "9.4"
},
"ui_total_duration": "33 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"projected_point": {
"lat": 55.77548691400483,
"lon": 37.58308675494588
},
"transit": false
},
{
"original_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"projected_point": {
"lat": 55.76508099601444,
"lon": 37.65655367382703
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}
Учёт расписания общественного транспорта
По умолчанию маршруты на общественном транспорте строятся с учётом расписания движения:
- Если для маршрута транспорта доступно прогнозное расписание, то оно используется для расчёта. В ответе вернётся поле
"origin_from": "eta"в блоке"schedules". В прогнозном расписании указано время прибытия транспорта на остановки. Оно рассчитывается на основе статистики, за какое время этот маршрут транспорта проезжал участки пути ранее. - Если прогнозное расписание недоступно, используются данные о стандартном расписании маршрута (например, полученные от перевозчика).
Расписание влияет на расчёт времени ожидания транспорта и времени в пути. Например, если ближайший трамвай отправляется через 15 минут, то время его ожидания (waiting_duration) будет учитываться при расчёте общего времени движения (total_duration).
В расписании также учитываются ночные перерывы в работе транспорта. Например, время начала движения трамвая — 06:10. Если вы строите маршрут со временем начала движения (start_time) 04:00, то время ожидания составит 2 часа 10 минут и повлияет на общее время движения. Если не учитывать расписание, будет использоваться только стандартное время ожидания для выбранного вида транспорта.
Чтобы построить маршрут без учёта расписания, отправьте POST-запрос на /public_transport/2.0 со следующими параметрами:
source(обязательный параметр) — координаты начальной точки (широта и долгота).target(обязательный параметр) — координаты конечной точки (широта и долгота).transport(обязательный параметр) — массив видов общественного транспорта. Например,tram— трамвай. Полный список видов общественного транспорта см. в описании параметраtransportв Справочнике API или в инструкции Способы передвижения.start_time— дата и время начала движения в формате Unix-времени (например,1766620800).enable_schedule— учитывать ли расписание транспорта в ответе. Если указано значениеfalse, маршрут строится без учёта расписания движения транспорта.locale— язык текстовых описаний элементов маршрута: русский.
Пример запроса:
curl --request POST \
--url 'https://routing.api.2gis.com/public_transport/2.0?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"source":
{
"point":
{
"lat": 55.798227,
"lon": 37.697461
}
},
"target":
{
"point":
{
"lat": 55.821029,
"lon": 37.641507
}
},
"transport": ["tram"],
"start_time": 1766620800, // 04.04.2026 03:00
"enable_schedule": false,
"locale": "ru"
}'
Пример ответа:
По расписанию трамвай начинает движение в 06:04. В ответе не учтено время ожидания транспорта (waiting_duration), а для участка маршрута в комментарии не указано время прибытия:
...
"routes": [],
"type": "passage",
"waiting_duration": 360, // если "enable_schedule": true, значение — 10662
"waypoint": {
"combined": false,
"comment": "",
"name": "Майский просек",
"subtype": "tram"
}
...
{
"distance": 0,
"id": "32",
"moving_duration": 0,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "Вы на месте!", // если "enable_schedule": true,
// значение — "Вы на месте в 06:31."
"name": "",
"subtype": "finish"
}
}
...
response.json
[
{
"crossing_count": 0,
"id": "1",
"movements": [
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.697461 55.798227, 37.697219 55.798105)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697219 55.798105, 37.696846 55.798442, 37.696773 55.798416, 37.696651 55.798526, 37.696566 55.798495, 37.696479 55.798464, 37.696468 55.798491, 37.696255 55.798682, 37.696146 55.798780, 37.696077 55.798843, 37.695057 55.799763, 37.694602 55.800173, 37.694537 55.800239, 37.694243 55.800507, 37.694229 55.800526, 37.694197 55.800540, 37.694151 55.800542, 37.692213 55.800149, 37.692207 55.800147, 37.692178 55.800202, 37.692165 55.800246)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.692165 55.800246, 37.692111 55.800420)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.692111 55.800420, 37.691998 55.800791, 37.691872 55.801172)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.691872 55.801172, 37.691668 55.801667, 37.691519 55.802111, 37.691425 55.802391, 37.691121 55.802404, 37.691043 55.802426, 37.690760 55.802501)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.690760 55.802501, 37.690329 55.802565, 37.690284 55.802572, 37.689865 55.802584, 37.689708 55.802600, 37.689474 55.802625, 37.689262 55.802597, 37.689094 55.802576, 37.688655 55.802660)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.688655 55.802660, 37.688643 55.802662)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.688643 55.802662, 37.688763 55.802770)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.688763 55.802770, 37.688736 55.802779)",
"z_first": 0,
"z_last": 0
}
]
}
],
"distance": 943,
"id": "2",
"moving_duration": 678,
"platforms": null,
"routes": null,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "пешком 950 м",
"name": "",
"subtype": "start"
}
},
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.688736 55.802779, 37.691783 55.805522, 37.691783 55.805522, 37.691818 55.805554, 37.691845 55.805605, 37.691850 55.805654, 37.691833 55.805706, 37.691801 55.805749, 37.688260 55.808460, 37.688260 55.808460, 37.685191 55.810809, 37.685191 55.810809, 37.685033 55.810930, 37.684952 55.810992, 37.684916 55.811028, 37.684896 55.811062, 37.684892 55.811096, 37.684896 55.811129, 37.684909 55.811162, 37.686836 55.813675, 37.686944 55.813828, 37.686980 55.813929, 37.686960 55.814036, 37.686939 55.814092, 37.686932 55.814099, 37.686852 55.814155, 37.685514 55.815093, 37.685514 55.815093, 37.685416 55.815161, 37.685416 55.815161, 37.685287 55.815223, 37.685095 55.815285, 37.684827 55.815345, 37.683910 55.815484, 37.683910 55.815484, 37.683906 55.815485, 37.683505 55.815543, 37.683137 55.815632, 37.682842 55.815735, 37.679923 55.817113, 37.679697 55.817198, 37.679697 55.817198, 37.679452 55.817263, 37.679197 55.817316, 37.678881 55.817370, 37.678881 55.817370, 37.676014 55.817855, 37.675427 55.817966, 37.674852 55.818113, 37.670645 55.819328, 37.670645 55.819328, 37.670268 55.819436, 37.670268 55.819436, 37.670210 55.819453, 37.670210 55.819453, 37.668247 55.820018, 37.668247 55.820018, 37.667630 55.820196, 37.667630 55.820196, 37.667327 55.820283, 37.665856 55.820705, 37.665856 55.820705, 37.664176 55.821188, 37.662182 55.821803, 37.662182 55.821803, 37.658375 55.822966, 37.658375 55.822966, 37.657575 55.823211, 37.652794 55.824836, 37.652402 55.824974, 37.652402 55.824974, 37.652265 55.825022, 37.651428 55.825471, 37.651068 55.825617, 37.650897 55.825687, 37.650698 55.825761, 37.648796 55.826395, 37.648796 55.826395, 37.648505 55.826484, 37.648464 55.826494, 37.648137 55.826562, 37.647230 55.826868, 37.647230 55.826868, 37.646884 55.826966, 37.646611 55.827047, 37.646611 55.827047, 37.645893 55.827260, 37.645893 55.827260, 37.645695 55.827318, 37.645583 55.827334, 37.645447 55.827336, 37.645322 55.827321, 37.645189 55.827290, 37.645083 55.827251, 37.638657 55.823945)"
}
],
"platforms": [
{
"geometry": "POINT(37.688736 55.802779)",
"id": "18"
},
{
"geometry": "POINT(37.691783 55.805522)",
"id": "19"
},
{
"geometry": "POINT(37.688260 55.808460)",
"id": "20"
},
{
"geometry": "POINT(37.685191 55.810809)",
"id": "21"
},
{
"geometry": "POINT(37.685514 55.815093)",
"id": "22"
},
{
"geometry": "POINT(37.678881 55.817370)",
"id": "23"
},
{
"geometry": "POINT(37.670645 55.819328)",
"id": "24"
},
{
"geometry": "POINT(37.662182 55.821803)",
"id": "25"
},
{
"geometry": "POINT(37.658375 55.822966)",
"id": "26"
},
{
"geometry": "POINT(37.652402 55.824974)",
"id": "27"
},
{
"geometry": "POINT(37.648796 55.826395)",
"id": "28"
},
{
"geometry": "POINT(37.645893 55.827260)",
"id": "29"
},
{
"geometry": "POINT(37.638657 55.823945)",
"id": "30"
}
]
}
],
"distance": 5069,
"id": "3",
"moving_duration": 963,
"platforms": {
"names": [
"Большая Оленья",
"2-й Ширяевский пер.",
"Большая Ширяевская",
"Ростокинский проезд",
"Институт иностранных языков",
"Станция юных натуралистов",
"пл. Академика Люльки",
"Бориса Галушкина д.17",
"Ярославская",
"Проспект Мира",
"ВДНХ (Северная)"
]
},
"routes": [
{
"color": "#eb5a2b",
"names": [
"25"
],
"subtype": "tram",
"subtype_name": "трамвай"
}
],
"type": "passage",
"waiting_duration": 360,
"waypoint": {
"combined": false,
"comment": "",
"name": "Майский просек",
"subtype": "tram"
}
},
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.638657 55.823945, 37.638631 55.823961)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.638631 55.823961, 37.638746 55.824020, 37.639012 55.824157, 37.639305 55.824308)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.639305 55.824308, 37.639349 55.824281, 37.639382 55.824262, 37.639424 55.824235)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.639424 55.824235, 37.639502 55.824188)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.639502 55.824188, 37.639560 55.824152, 37.639459 55.824097, 37.639938 55.823801, 37.640514 55.823445, 37.641224 55.823008, 37.641585 55.822786, 37.641599 55.822592, 37.641617 55.822539, 37.641675 55.822529, 37.641775 55.822496, 37.641858 55.822451, 37.641922 55.822397, 37.641962 55.822336, 37.641975 55.822271, 37.642003 55.822265)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642003 55.822265, 37.642122 55.822253)",
"z_first": 0,
"z_last": -1
},
{
"selection": "LINESTRING(37.642122 55.822253, 37.643316 55.822132, 37.643282 55.822100)",
"z_first": -1,
"z_last": -1
},
{
"selection": "LINESTRING(37.643282 55.822100, 37.643183 55.822009)",
"z_first": -1,
"z_last": 0
},
{
"selection": "LINESTRING(37.643183 55.822009, 37.643155 55.821980, 37.643203 55.821964, 37.643018 55.821773, 37.642977 55.821735)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642977 55.821735, 37.642882 55.821644)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642882 55.821644, 37.642812 55.821579, 37.642669 55.821442, 37.642378 55.821171, 37.642309 55.821107, 37.642222 55.821021, 37.642069 55.820892, 37.641883 55.820954, 37.641737 55.821003, 37.641765 55.821037, 37.641777 55.821051, 37.641767 55.821066, 37.641753 55.821076, 37.641595 55.821125, 37.641504 55.821039)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.641504 55.821039, 37.641507 55.821029)",
"z_first": 0,
"z_last": 0
}
]
}
],
"distance": 645,
"id": "31",
"moving_duration": 494,
"platforms": null,
"routes": null,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "пешком 650 м",
"name": "Метро ВДНХ · 1F",
"subtype": "pedestrian"
}
},
{
"distance": 0,
"id": "32",
"moving_duration": 0,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "Вы на месте!",
"name": "",
"subtype": "finish"
}
}
],
"pedestrian": false,
"route_id": "moscow-ctx-back.m1/ctxrouting/17666208000000.00000",
"total_distance": 6657,
"total_duration": 2495,
"total_walkway_distance": "пешком 19 мин",
"transfer_count": 0,
"transport": [
"pedestrian",
"bus",
"trolleybus",
"tram",
"shuttle_bus",
"metro",
"suburban_train",
"funicular_railway",
"monorail",
"river_transport",
"cable_car",
"light_rail",
"premetro",
"light_metro",
"aeroexpress",
"mcd",
"mcc"
],
"waypoints": [
{
"combined": false,
"routes_names": [
"25"
],
"subtype": "tram"
}
]
},
{
"crossing_count": 0,
"id": "33",
"movements": [
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.697461 55.798227, 37.697219 55.798105)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697219 55.798105, 37.696846 55.798442, 37.696913 55.798465, 37.697097 55.798530, 37.697169 55.798555)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697169 55.798555, 37.697179 55.798578, 37.697239 55.798712, 37.697257 55.798766, 37.697271 55.798807, 37.697283 55.798855, 37.697316 55.798894, 37.697373 55.798924, 37.697344 55.799044, 37.697373 55.799165)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697373 55.799165, 37.697336 55.799173, 37.697319 55.799189, 37.697312 55.799205, 37.697312 55.799216, 37.697311 55.799245, 37.697306 55.799513, 37.697305 55.799548, 37.697340 55.799579, 37.697414 55.799597, 37.697602 55.799600, 37.697758 55.799602)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697758 55.799602, 37.697797 55.799705, 37.697797 55.799785, 37.697792 55.800052, 37.697707 55.800163, 37.697603 55.800241)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697603 55.800241, 37.697599 55.800487)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.697599 55.800487, 37.698127 55.800700, 37.698175 55.801181, 37.698172 55.801194, 37.698166 55.801209, 37.698148 55.801220, 37.698123 55.801228, 37.698093 55.801236, 37.698080 55.801276, 37.698069 55.801333, 37.698057 55.801363, 37.698121 55.801383, 37.698177 55.801414, 37.698228 55.801461, 37.698339 55.801460, 37.698442 55.801463, 37.698469 55.801445, 37.698502 55.801435, 37.698546 55.801430, 37.699031 55.801478, 37.699181 55.801497, 37.699362 55.801514, 37.699412 55.801519, 37.699633 55.801539, 37.699757 55.801565, 37.699887 55.801601, 37.700890 55.801933, 37.701170 55.802010, 37.702352 55.802286, 37.703161 55.802510, 37.703468 55.802629, 37.704171 55.802825, 37.704450 55.802867, 37.704570 55.802901, 37.705703 55.803212, 37.705873 55.803259, 37.706145 55.803334, 37.706603 55.803460, 37.706942 55.803561, 37.707241 55.803652, 37.707213 55.803686, 37.707186 55.804016, 37.707151 55.804106, 37.707204 55.804110, 37.707139 55.804288)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.707139 55.804288, 37.707220 55.804366)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.707220 55.804366, 37.707143 55.804574, 37.707098 55.804701, 37.707167 55.804708)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.707167 55.804708, 37.707292 55.804723)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.707292 55.804723, 37.707312 55.804669)",
"z_first": 0,
"z_last": 0
}
]
}
],
"distance": 1205,
"id": "34",
"moving_duration": 867,
"platforms": null,
"routes": null,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "пешком 1,3 км",
"name": "",
"subtype": "start"
}
},
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.707312 55.804669, 37.706638 55.806534, 37.706486 55.806866, 37.706486 55.806866, 37.706407 55.807038, 37.706084 55.807743, 37.706035 55.807876, 37.705796 55.808663, 37.705773 55.808723, 37.705744 55.808773, 37.705703 55.808819, 37.705699 55.808823, 37.703964 55.809913, 37.703964 55.809913, 37.703053 55.810485, 37.702896 55.810572, 37.702753 55.810643, 37.702591 55.810720, 37.701972 55.810999, 37.701730 55.811093, 37.701529 55.811163, 37.697667 55.812512, 37.697667 55.812512, 37.697577 55.812544, 37.697468 55.812589, 37.697389 55.812631, 37.697304 55.812685, 37.697201 55.812755, 37.695285 55.814300, 37.695285 55.814300, 37.695073 55.814471, 37.695005 55.814519, 37.694910 55.814576, 37.694437 55.814790, 37.694437 55.814790, 37.694374 55.814818, 37.694374 55.814818, 37.693834 55.815062, 37.692710 55.815512, 37.691279 55.816219, 37.691111 55.816299, 37.690935 55.816377, 37.690742 55.816451, 37.690543 55.816517, 37.689091 55.816899, 37.689091 55.816899, 37.688232 55.817120, 37.688133 55.817135, 37.688044 55.817144, 37.687983 55.817146, 37.687925 55.817140, 37.685300 55.816091, 37.685151 55.816005, 37.685146 55.816002, 37.685043 55.815903, 37.685039 55.815899, 37.684968 55.815746, 37.684968 55.815746, 37.684943 55.815685, 37.684943 55.815679, 37.684943 55.815679, 37.684915 55.815595, 37.684858 55.815490, 37.684811 55.815453, 37.684746 55.815427, 37.684666 55.815413, 37.684585 55.815409, 37.683910 55.815484, 37.683910 55.815484, 37.683906 55.815485, 37.683505 55.815543, 37.683137 55.815632, 37.682842 55.815735, 37.679923 55.817113, 37.679697 55.817198, 37.679697 55.817198, 37.679452 55.817263, 37.679197 55.817316, 37.678881 55.817370, 37.678881 55.817370, 37.676014 55.817855, 37.675427 55.817966, 37.674852 55.818113, 37.670645 55.819328, 37.670645 55.819328, 37.670268 55.819436, 37.670268 55.819436, 37.670210 55.819453, 37.670210 55.819453, 37.668247 55.820018, 37.668247 55.820018, 37.667630 55.820196, 37.667630 55.820196, 37.667327 55.820283, 37.665856 55.820705, 37.665856 55.820705, 37.664176 55.821188, 37.662182 55.821803, 37.662182 55.821803, 37.658375 55.822966, 37.658375 55.822966, 37.657575 55.823211, 37.652794 55.824836, 37.652402 55.824974, 37.652402 55.824974, 37.652265 55.825022, 37.651428 55.825471, 37.651068 55.825617, 37.650897 55.825687, 37.650698 55.825761, 37.648796 55.826395, 37.648796 55.826395, 37.648505 55.826484, 37.648464 55.826494, 37.648137 55.826562, 37.647230 55.826868, 37.647230 55.826868, 37.646884 55.826966, 37.646611 55.827047, 37.646611 55.827047, 37.645893 55.827260, 37.645893 55.827260, 37.645695 55.827318, 37.645583 55.827334, 37.645447 55.827336, 37.645322 55.827321, 37.645189 55.827290, 37.645083 55.827251, 37.638657 55.823945)"
}
],
"platforms": [
{
"geometry": "POINT(37.707312 55.804669)",
"id": "52"
},
{
"geometry": "POINT(37.706486 55.806866)",
"id": "53"
},
{
"geometry": "POINT(37.703964 55.809913)",
"id": "54"
},
{
"geometry": "POINT(37.697667 55.812512)",
"id": "55"
},
{
"geometry": "POINT(37.694374 55.814818)",
"id": "56"
},
{
"geometry": "POINT(37.689091 55.816899)",
"id": "57"
},
{
"geometry": "POINT(37.684968 55.815746)",
"id": "58"
},
{
"geometry": "POINT(37.678881 55.817370)",
"id": "59"
},
{
"geometry": "POINT(37.670645 55.819328)",
"id": "60"
},
{
"geometry": "POINT(37.662182 55.821803)",
"id": "61"
},
{
"geometry": "POINT(37.658375 55.822966)",
"id": "62"
},
{
"geometry": "POINT(37.652402 55.824974)",
"id": "63"
},
{
"geometry": "POINT(37.648796 55.826395)",
"id": "64"
},
{
"geometry": "POINT(37.645893 55.827260)",
"id": "65"
},
{
"geometry": "POINT(37.638657 55.823945)",
"id": "66"
}
]
}
],
"distance": 5615,
"id": "35",
"moving_duration": 1088,
"platforms": {
"names": [
"Телерадиокомпания МИР",
"1-я Прогонная",
"Инновационный университет",
"Богородский храм",
"Богатырский мост",
"Ростокинский проезд",
"Институт иностранных языков",
"Станция юных натуралистов",
"пл. Академика Люльки",
"Бориса Галушкина д.17",
"Ярославская",
"Проспект Мира",
"ВДНХ (Северная)"
]
},
"routes": [
{
"color": "#eb5a2b",
"names": [
"11"
],
"subtype": "tram",
"subtype_name": "трамвай"
}
],
"type": "passage",
"waiting_duration": 300,
"waypoint": {
"combined": false,
"comment": "",
"name": "Мосгорсуд",
"subtype": "tram"
}
},
{
"alternatives": [
{
"geometry": [
{
"selection": "LINESTRING(37.638657 55.823945, 37.638631 55.823961)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.638631 55.823961, 37.638746 55.824020, 37.639012 55.824157, 37.639305 55.824308)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.639305 55.824308, 37.639349 55.824281, 37.639382 55.824262, 37.639424 55.824235)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.639424 55.824235, 37.639502 55.824188)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.639502 55.824188, 37.639560 55.824152, 37.639459 55.824097, 37.639938 55.823801, 37.640514 55.823445, 37.641224 55.823008, 37.641585 55.822786, 37.641599 55.822592, 37.641617 55.822539, 37.641675 55.822529, 37.641775 55.822496, 37.641858 55.822451, 37.641922 55.822397, 37.641962 55.822336, 37.641975 55.822271, 37.642003 55.822265)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642003 55.822265, 37.642122 55.822253)",
"z_first": 0,
"z_last": -1
},
{
"selection": "LINESTRING(37.642122 55.822253, 37.643316 55.822132, 37.643282 55.822100)",
"z_first": -1,
"z_last": -1
},
{
"selection": "LINESTRING(37.643282 55.822100, 37.643183 55.822009)",
"z_first": -1,
"z_last": 0
},
{
"selection": "LINESTRING(37.643183 55.822009, 37.643155 55.821980, 37.643203 55.821964, 37.643018 55.821773, 37.642977 55.821735)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642977 55.821735, 37.642882 55.821644)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.642882 55.821644, 37.642812 55.821579, 37.642669 55.821442, 37.642378 55.821171, 37.642309 55.821107, 37.642222 55.821021, 37.642069 55.820892, 37.641883 55.820954, 37.641737 55.821003, 37.641765 55.821037, 37.641777 55.821051, 37.641767 55.821066, 37.641753 55.821076, 37.641595 55.821125, 37.641504 55.821039)",
"z_first": 0,
"z_last": 0
},
{
"selection": "LINESTRING(37.641504 55.821039, 37.641507 55.821029)",
"z_first": 0,
"z_last": 0
}
]
}
],
"distance": 645,
"id": "67",
"moving_duration": 494,
"platforms": null,
"routes": null,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "пешком 650 м",
"name": "Метро ВДНХ · 1F",
"subtype": "pedestrian"
}
},
{
"distance": 0,
"id": "68",
"moving_duration": 0,
"type": "walkway",
"waiting_duration": 0,
"waypoint": {
"comment": "Вы на месте!",
"name": "",
"subtype": "finish"
}
}
],
"pedestrian": false,
"route_id": "moscow-ctx-back.m1/ctxrouting/17666208000000.00000",
"total_distance": 7465,
"total_duration": 2749,
"total_walkway_distance": "пешком 22 мин",
"transfer_count": 0,
"waypoints": [
{
"combined": false,
"routes_names": [
"11"
],
"subtype": "tram"
}
]
}
]