Перейти к основному содержимому

Примеры

Здесь приведены основные сценарии работы и примеры запросов Routing API. Подробная информация о параметрах запросов представлена в Справочнике API.

Обязательными параметрами для построения маршрута являются ваш API-ключ (key) и минимум 2 точки маршрута (points). По умолчанию (если указаны только обязательные параметры) строится маршрут со следующими свойствами:

  • Маршрут для проезда на автомобиле.
  • С учётом пробок и дорожных перекрытий, актуальных на момент отправки запроса.
  • Кратчайший по времени.

Вы можете изменить эти свойства или добавить дополнительные ограничения для построения маршрута. Примеры запросов будут приведены с использованием cURL.

Типы точек

Для каждой точки рекомендуется явно указать её тип с помощью параметра type:

  • walking — начальная/конечная точка маршрута.

    • Для пешеходных маршрутов: рекомендуется использовать только этот тип точек.
    • Для маршрутов на транспорте: если точка расположена не на дороге, в маршрут будет добавлен пешеходный путь до неё с обходом препятствий (например, зданий).
  • stop — начальная/конечная точка маршрута. Если в маршруте на транспорте точка расположена не на дороге, в маршрут будет добавлен прямой путь, игнорирующий препятствия.

  • pref — промежуточная точка маршрута.

Начальные и конечные точки

Для любого типа маршрута можно указать несколько начальных и конечных точек. Это может быть удобно в тех случаях, когда у здания есть несколько входов и выходов. При указании нескольких точек будет построен оптимальный маршрут от одной из начальных точек до одной из конечных.

По умолчанию первая точка в списке считается начальной. Вы также можете явно обозначить начальную точку с помощью параметра start:

{
"points": [
{
"lon": "37.522492",
"lat": "55.833249",
"type": "stop",
"start": true
},
{
"lon": "37.533709",
"lat": "55.83546",
"type": "stop"
}
]
}

Промежуточные точки

В зависимости от типа маршрута вы можете указать следующее количество промежуточных точек:

  • До 10 точек с учётом конечной и начальной для маршрута на транспорте.
  • До 5 точек с учётом конечной и начальной для пешеходного маршрута.
{
"points": [
{
"lon": "37.522492",
"lat": "55.833249",
"type": "walking",
"start": true
},
{
"lon": "37.526669",
"lat": "55.83433",
"type": "pref"
},
{
"lon": "37.533709",
"lat": "55.83546",
"type": "stop"
}
]
}

Способы передвижения

Чтобы указать способ передвижения по маршруту (вид транспорта или движение пешком), используйте параметр transport. По умолчанию маршрут строится для проезда на автомобиле (в запросе передаётся значение параметра transport: driving). Ниже приведены примеры и описаны основные особенности маршрутов для всех доступных способов передвижения.

Пример построения маршрутов для разных способов передвижения:


На автомобиле

Чтобы построить маршрут для автомобиля, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

  • transport: driving — способ передвижения: на автомобиле.

  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • toll_road — платные дороги;
    • ferry — переправы.
  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

Пример запроса:

curl --location --request POST 'http://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",
"filters": [
"dirt_road",
"toll_road",
"ferry"
],
"output": "detailed",
"locale": "ru"
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["dirt_road", "toll_road", "ferry"],
"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.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "15337550825529358907",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "4374223878389382766",
"outcoming_path": {
"distance": 30,
"duration": 8,
"geometry": [
{
"color": "normal",
"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": "16964532553980920794",
"outcoming_path": {
"distance": 406,
"duration": 116,
"geometry": [
{
"color": "slow",
"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": "normal",
"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": "normal",
"length": 15,
"selection": "LINESTRING(37.585154 55.776303, 37.585381 55.776355)",
"style": "normal"
},
{
"color": "fast",
"length": 50,
"selection": "LINESTRING(37.585381 55.776355, 37.585568 55.776469, 37.585606 55.776493, 37.585928 55.776703)",
"style": "normal"
},
{
"color": "normal",
"length": 177,
"selection": "LINESTRING(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": "18345566012543006196",
"outcoming_path": {
"distance": 988,
"duration": 236,
"geometry": [
{
"color": "fast",
"length": 216,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 65,
"selection": "LINESTRING(37.590495 55.776617, 37.590578 55.776576, 37.590882 55.776429, 37.591177 55.776285, 37.591234 55.776258, 37.591311 55.776220)",
"style": "normal"
},
{
"color": "fast",
"length": 707,
"selection": "LINESTRING(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.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": "10869910712975086040",
"outcoming_path": {
"distance": 89,
"duration": 15,
"geometry": [
{
"color": "fast",
"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": "5216707865107290700",
"outcoming_path": {
"distance": 112,
"duration": 22,
"geometry": [
{
"color": "fast",
"length": 91,
"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)",
"style": "normal"
},
{
"color": "normal",
"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": "8979973283683786126",
"outcoming_path": {
"distance": 4042,
"duration": 1461,
"geometry": [
{
"color": "normal",
"length": 496,
"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)",
"style": "normal"
},
{
"color": "fast",
"length": 291,
"selection": "LINESTRING(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.609050 55.773088)",
"style": "normal"
},
{
"color": "normal",
"length": 106,
"selection": "LINESTRING(37.609050 55.773088, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247)",
"style": "normal"
},
{
"color": "fast",
"length": 416,
"selection": "LINESTRING(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": "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": 419,
"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, 37.631859 55.772761, 37.632283 55.772702, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 525,
"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, 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)",
"style": "normal"
},
{
"color": "slow",
"length": 148,
"selection": "LINESTRING(37.641596 55.770815, 37.642386 55.770573, 37.642720 55.770474, 37.643276 55.770304, 37.643525 55.770234, 37.643708 55.770178)",
"style": "normal"
},
{
"color": "normal",
"length": 284,
"selection": "LINESTRING(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)",
"style": "normal"
},
{
"color": "fast",
"length": 417,
"selection": "LINESTRING(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": 76,
"selection": "LINESTRING(37.652654 55.766522, 37.653423 55.765990)",
"style": "normal"
},
{
"color": "fast",
"length": 244,
"selection": "LINESTRING(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": "10244709763460428463",
"outcoming_path": {
"distance": 71,
"duration": 26,
"geometry": [
{
"color": "normal",
"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",
"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": "4287807693496540407",
"outcoming_path": {
"distance": 54,
"duration": 18,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "2869600752127429903",
"outcoming_path": {
"distance": 36,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0,
"requested_filters": ["dirt_road", "toll_road", "ferry"],
"result_filters": ["dirt_road", "toll_road", "ferry"],
"route_id": "moscow-cr-back.m9/carrouting/1751363039.260075",
"total_distance": 5828,
"total_duration": 1914,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "5.8"
},
"ui_total_duration": "31 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "16603265788899600291",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "4787661736321557635",
"outcoming_path": {
"distance": 30,
"duration": 8,
"geometry": [
{
"color": "normal",
"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": "11630599458276862452",
"outcoming_path": {
"distance": 164,
"duration": 52,
"geometry": [
{
"color": "slow",
"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": "normal",
"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": "12765970414718330620",
"outcoming_path": {
"distance": 1256,
"duration": 203,
"geometry": [
{
"color": "normal",
"length": 87,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586158 55.775747)",
"style": "normal"
},
{
"color": "fast",
"length": 191,
"selection": "LINESTRING(37.586158 55.775747, 37.588010 55.774663, 37.588280 55.774505)",
"style": "normal"
},
{
"color": "normal",
"length": 338,
"selection": "LINESTRING(37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126, 37.592026 55.772311)",
"style": "normal"
},
{
"color": "fast",
"length": 27,
"selection": "LINESTRING(37.592026 55.772311, 37.592333 55.772132)",
"style": "normal"
},
{
"color": "normal",
"length": 158,
"selection": "LINESTRING(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": "17185724235528870476",
"outcoming_path": {
"distance": 282,
"duration": 94,
"geometry": [
{
"color": "fast",
"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": "4976825008792204860",
"outcoming_path": {
"distance": 165,
"duration": 97,
"geometry": [
{
"color": "slow",
"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": "7332108464025667134",
"outcoming_path": {
"distance": 129,
"duration": 74,
"geometry": [
{
"color": "slow",
"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",
"length": 58,
"selection": "LINESTRING(37.592996 55.766304, 37.592644 55.766520, 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": "226756107517912765",
"outcoming_path": {
"distance": 4545,
"duration": 1462,
"geometry": [
{
"color": "fast",
"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": "fast",
"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": 484,
"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)",
"style": "normal"
},
{
"color": "fast",
"length": 291,
"selection": "LINESTRING(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.609050 55.773088)",
"style": "normal"
},
{
"color": "normal",
"length": 106,
"selection": "LINESTRING(37.609050 55.773088, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247)",
"style": "normal"
},
{
"color": "fast",
"length": 416,
"selection": "LINESTRING(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": "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": 419,
"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, 37.631859 55.772761, 37.632283 55.772702, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511)",
"style": "normal"
},
{
"color": "slow-jams",
"length": 525,
"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, 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)",
"style": "normal"
},
{
"color": "slow",
"length": 148,
"selection": "LINESTRING(37.641596 55.770815, 37.642386 55.770573, 37.642720 55.770474, 37.643276 55.770304, 37.643525 55.770234, 37.643708 55.770178)",
"style": "normal"
},
{
"color": "normal",
"length": 284,
"selection": "LINESTRING(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)",
"style": "normal"
},
{
"color": "fast",
"length": 417,
"selection": "LINESTRING(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": 76,
"selection": "LINESTRING(37.652654 55.766522, 37.653423 55.765990)",
"style": "normal"
},
{
"color": "fast",
"length": 244,
"selection": "LINESTRING(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": "2694315542003367354",
"outcoming_path": {
"distance": 71,
"duration": 26,
"geometry": [
{
"color": "normal",
"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",
"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": "15810298580430094515",
"outcoming_path": {
"distance": 54,
"duration": 18,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "16916359742261082955",
"outcoming_path": {
"distance": 36,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0,
"requested_filters": ["dirt_road", "toll_road", "ferry"],
"result_filters": ["dirt_road", "toll_road", "ferry"],
"route_id": "moscow-cr-back.m9/carrouting/1751363039.261096",
"total_distance": 6732,
"total_duration": 2046,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "6.7"
},
"ui_total_duration": "34 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

На такси

При построении маршрута для проезда на такси учитываются параметры обычного автомобильного маршрута и выделенные полосы для общественного транспорта.

Чтобы построить маршрут для такси, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

  • transport: taxi — способ передвижения: на такси.

  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • toll_road — платные дороги;
    • ferry — переправы.
  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

Пример запроса:

curl --location --request POST 'http://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": "taxi",
"filters": [
"dirt_road",
"toll_road",
"ferry"
],
"output": "detailed",
"locale": "ru"
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["dirt_road", "toll_road", "ferry"],
"locale": "ru",
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"transport": "taxi"
},
"result": [
{
"algorithm": "учтём выделенные полосы и пробки",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "9777946975219344455",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "5235513275269630607",
"outcoming_path": {
"distance": 30,
"duration": 10,
"geometry": [
{
"color": "normal",
"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": "6511208226851246996",
"outcoming_path": {
"distance": 164,
"duration": 48,
"geometry": [
{
"color": "slow",
"length": 18,
"selection": "LINESTRING(37.583307 55.775231, 37.583561 55.775318)",
"style": "normal"
},
{
"color": "normal",
"length": 58,
"selection": "LINESTRING(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": "normal",
"length": 88,
"public_transport_lane": true,
"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": "8645399998321801843",
"outcoming_path": {
"distance": 2824,
"duration": 467,
"geometry": [
{
"color": "normal",
"length": 491,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586158 55.775747, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126)",
"style": "normal"
},
{
"color": "fast",
"length": 125,
"selection": "LINESTRING(37.590635 55.773126, 37.592026 55.772311)",
"style": "normal"
},
{
"color": "normal",
"length": 27,
"selection": "LINESTRING(37.592026 55.772311, 37.592333 55.772132)",
"style": "normal"
},
{
"color": "fast",
"length": 516,
"selection": "LINESTRING(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)",
"style": "normal"
},
{
"color": "normal",
"length": 249,
"selection": "LINESTRING(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": "slow",
"length": 208,
"selection": "LINESTRING(37.600897 55.767147, 37.601521 55.766805, 37.601900 55.766596, 37.602422 55.766310, 37.603289 55.765833)",
"style": "normal"
},
{
"color": "normal",
"length": 167,
"selection": "LINESTRING(37.603289 55.765833, 37.603830 55.765536, 37.604201 55.765332, 37.604264 55.765298, 37.605221 55.764772)",
"style": "normal"
},
{
"color": "fast",
"length": 411,
"selection": "LINESTRING(37.605221 55.764772, 37.605331 55.764712, 37.605589 55.764564, 37.605755 55.764468, 37.605892 55.764379, 37.605943 55.764346, 37.606052 55.764261, 37.606330 55.764042, 37.607409 55.763195, 37.608277 55.762513, 37.608419 55.762402, 37.608663 55.762210, 37.608964 55.761973, 37.609189 55.761797)",
"style": "normal"
},
{
"color": "normal",
"length": 178,
"selection": "LINESTRING(37.609189 55.761797, 37.609668 55.761364, 37.610581 55.760402)",
"style": "normal"
},
{
"color": "slow",
"length": 153,
"selection": "LINESTRING(37.610581 55.760402, 37.611732 55.759187)",
"style": "normal"
},
{
"color": "fast",
"length": 19,
"selection": "LINESTRING(37.611732 55.759187, 37.611881 55.759030)",
"style": "normal"
},
{
"color": "normal",
"length": 280,
"selection": "LINESTRING(37.611881 55.759030, 37.612156 55.758740, 37.612480 55.758397, 37.612745 55.758176, 37.613042 55.757957, 37.613061 55.757943, 37.613220 55.757842, 37.613439 55.757702, 37.614188 55.757327, 37.614359 55.757241, 37.614424 55.757209, 37.614692 55.757075)",
"style": "normal"
}
],
"names": ["1-я Тверская-Ямская"]
},
"outcoming_path_comment": "2.8 км прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Охотный Ряд",
"icon": "crossroad_left",
"id": "10898404579100465040",
"outcoming_path": {
"distance": 711,
"duration": 114,
"geometry": [
{
"color": "normal",
"length": 25,
"selection": "LINESTRING(37.614692 55.757075, 37.614880 55.756984, 37.615022 55.756943)",
"style": "normal"
},
{
"color": "fast",
"length": 410,
"selection": "LINESTRING(37.615022 55.756943, 37.615076 55.756942, 37.615157 55.756952, 37.615216 55.756962, 37.615276 55.756977, 37.615375 55.757008, 37.615474 55.757045, 37.615885 55.757209, 37.616082 55.757333, 37.617164 55.758021, 37.617490 55.758218, 37.617688 55.758337, 37.617914 55.758435, 37.618154 55.758495, 37.618405 55.758539, 37.618690 55.758588, 37.619878 55.758794, 37.620053 55.758825, 37.620388 55.758883)",
"style": "normal"
},
{
"color": "normal",
"length": 30,
"selection": "LINESTRING(37.620388 55.758883, 37.620854 55.758964)",
"style": "normal"
},
{
"color": "fast",
"length": 188,
"public_transport_lane": true,
"selection": "LINESTRING(37.620854 55.758964, 37.621520 55.759079, 37.622236 55.759179, 37.622780 55.759255, 37.623755 55.759390)",
"style": "normal"
},
{
"color": "normal",
"length": 58,
"public_transport_lane": true,
"selection": "LINESTRING(37.623755 55.759390, 37.624658 55.759515)",
"style": "normal"
}
],
"names": ["Охотный Ряд"]
},
"outcoming_path_comment": "700 м прямо",
"turn_angle": -60,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Держитесь правее на ул. Новая площадь",
"icon": "crossroad_keep_right",
"id": "7633073413616051961",
"outcoming_path": {
"distance": 477,
"duration": 96,
"geometry": [
{
"color": "fast",
"length": 167,
"selection": "LINESTRING(37.624658 55.759515, 37.625049 55.759532, 37.625210 55.759535, 37.625387 55.759532, 37.625526 55.759521, 37.625663 55.759504, 37.625747 55.759487, 37.625791 55.759478, 37.625904 55.759444, 37.625994 55.759402, 37.626075 55.759353, 37.626542 55.759020, 37.626797 55.758837)",
"style": "normal"
},
{
"color": "normal",
"length": 310,
"selection": "LINESTRING(37.626797 55.758837, 37.627134 55.758596, 37.627309 55.758471, 37.627604 55.758260, 37.627872 55.758068, 37.629510 55.756897, 37.629731 55.756739, 37.629801 55.756689, 37.629850 55.756654, 37.629895 55.756632)",
"style": "normal"
}
],
"names": ["Новая площадь"]
},
"outcoming_path_comment": "500 м прямо",
"turn_angle": 10,
"turn_direction": "keep_right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Ильинские Ворота площадь",
"icon": "crossroad_left",
"id": "8897651675388855489",
"outcoming_path": {
"distance": 1861,
"duration": 437,
"geometry": [
{
"color": "fast",
"length": 107,
"selection": "LINESTRING(37.629895 55.756632, 37.629978 55.756619, 37.630038 55.756617, 37.630106 55.756623, 37.630198 55.756645, 37.630971 55.756953, 37.631358 55.757108)",
"style": "normal"
},
{
"color": "normal",
"length": 11,
"selection": "LINESTRING(37.631358 55.757108, 37.631510 55.757168)",
"style": "normal"
},
{
"color": "fast",
"length": 885,
"selection": "LINESTRING(37.631510 55.757168, 37.631622 55.757199, 37.631670 55.757213, 37.631827 55.757252, 37.631923 55.757272, 37.632087 55.757308, 37.632317 55.757358, 37.632359 55.757366, 37.632614 55.757414, 37.632704 55.757432, 37.633055 55.757485, 37.633207 55.757503, 37.633488 55.757537, 37.633724 55.757566, 37.633783 55.757573, 37.634140 55.757600, 37.634746 55.757634, 37.635261 55.757663, 37.635590 55.757681, 37.635743 55.757690, 37.636312 55.757722, 37.636337 55.757724, 37.636550 55.757739, 37.636752 55.757770, 37.636968 55.757820, 37.637080 55.757845, 37.637735 55.757996, 37.638128 55.758086, 37.638437 55.758157, 37.638642 55.758204, 37.639772 55.758464, 37.639913 55.758496, 37.640505 55.758599, 37.640845 55.758658, 37.641213 55.758722, 37.641348 55.758745, 37.641594 55.758788, 37.641693 55.758805, 37.642116 55.758876, 37.643212 55.759058, 37.643303 55.759069, 37.643928 55.759139, 37.643976 55.759145, 37.644427 55.759197, 37.645136 55.759277, 37.645355 55.759302)",
"style": "normal"
},
{
"color": "normal",
"length": 107,
"selection": "LINESTRING(37.645355 55.759302, 37.646107 55.759386, 37.646278 55.759405, 37.646352 55.759417, 37.646405 55.759425, 37.646523 55.759444, 37.646640 55.759462, 37.647064 55.759528)",
"style": "normal"
},
{
"color": "fast",
"length": 104,
"selection": "LINESTRING(37.647064 55.759528, 37.647326 55.759581, 37.647435 55.759604, 37.647605 55.759639, 37.647686 55.759656, 37.647877 55.759695, 37.648082 55.759738, 37.648147 55.759758, 37.648266 55.759794, 37.648531 55.759893, 37.648620 55.759926)",
"style": "normal"
},
{
"color": "normal",
"length": 647,
"selection": "LINESTRING(37.648620 55.759926, 37.648975 55.760098, 37.649122 55.760169, 37.649457 55.760331, 37.649506 55.760360, 37.649573 55.760399, 37.649617 55.760428, 37.649720 55.760498, 37.649886 55.760610, 37.649948 55.760653, 37.650400 55.760959, 37.650498 55.761026, 37.650552 55.761063, 37.650625 55.761112, 37.650686 55.761152, 37.650723 55.761176, 37.651595 55.761747, 37.651709 55.761822, 37.651900 55.761947, 37.651980 55.761999, 37.652258 55.762182, 37.652370 55.762250, 37.652487 55.762314, 37.652695 55.762420, 37.652816 55.762482, 37.652856 55.762503, 37.653203 55.762681, 37.653603 55.762887, 37.653911 55.763044, 37.654023 55.763099, 37.654131 55.763152, 37.654208 55.763189, 37.654436 55.763298, 37.654489 55.763323, 37.654911 55.763513, 37.655096 55.763596, 37.655188 55.763638, 37.655250 55.763663, 37.655523 55.763774, 37.655742 55.763856, 37.655887 55.763910, 37.655978 55.763942, 37.656208 55.764020)",
"style": "normal"
}
],
"names": ["Ильинские Ворота площадь"]
},
"outcoming_path_comment": "1.9 км прямо",
"turn_angle": -84,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Садовая-Черногрязская",
"icon": "crossroad_left",
"id": "3830539416112218267",
"outcoming_path": {
"distance": 98,
"duration": 39,
"geometry": [
{
"color": "normal",
"length": 15,
"selection": "LINESTRING(37.656208 55.764020, 37.656416 55.764092)",
"style": "normal"
},
{
"color": "slow",
"length": 83,
"selection": "LINESTRING(37.656416 55.764092, 37.656235 55.764223, 37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": ["Садовая-Черногрязская"]
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": -97,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "9583981696432773052",
"outcoming_path": {
"distance": 54,
"duration": 16,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "1143954132721878005",
"outcoming_path": {
"distance": 36,
"duration": 11,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0,
"requested_filters": ["dirt_road", "toll_road", "ferry"],
"result_filters": ["dirt_road", "toll_road", "ferry"],
"route_id": "moscow-tax-back.m9/taxirouting/1751363960.567693",
"total_distance": 6255,
"total_duration": 1238,
"type": "taxirouting",
"ui_total_distance": {
"unit": "км",
"value": "6.3"
},
"ui_total_duration": "20 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
},
{
"algorithm": "учтём выделенные полосы и пробки",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "11947586781250342515",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "4378305918881412923",
"outcoming_path": {
"distance": 30,
"duration": 10,
"geometry": [
{
"color": "normal",
"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": "5194963821431753072",
"outcoming_path": {
"distance": 406,
"duration": 98,
"geometry": [
{
"color": "slow",
"length": 18,
"selection": "LINESTRING(37.583307 55.775231, 37.583561 55.775318)",
"style": "normal"
},
{
"color": "normal",
"length": 58,
"selection": "LINESTRING(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": "normal",
"length": 88,
"public_transport_lane": true,
"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": "fast",
"length": 15,
"selection": "LINESTRING(37.585154 55.776303, 37.585381 55.776355)",
"style": "normal"
},
{
"color": "normal",
"length": 130,
"selection": "LINESTRING(37.585381 55.776355, 37.585568 55.776469, 37.585606 55.776493, 37.585928 55.776703, 37.586761 55.777249)",
"style": "normal"
},
{
"color": "fast",
"length": 9,
"selection": "LINESTRING(37.586761 55.777249, 37.586856 55.777311)",
"style": "normal"
},
{
"color": "normal",
"length": 12,
"selection": "LINESTRING(37.586856 55.777311, 37.586989 55.777398)",
"style": "normal"
},
{
"color": "fast",
"length": 76,
"selection": "LINESTRING(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": "11259239363905561753",
"outcoming_path": {
"distance": 988,
"duration": 223,
"geometry": [
{
"color": "fast",
"length": 135,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 15,
"selection": "LINESTRING(37.589488 55.777105, 37.589680 55.777012)",
"style": "normal"
},
{
"color": "fast",
"length": 838,
"selection": "LINESTRING(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.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": "4287489818912754110",
"outcoming_path": {
"distance": 89,
"duration": 13,
"geometry": [
{
"color": "normal",
"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": "1105048242447139117",
"outcoming_path": {
"distance": 112,
"duration": 19,
"geometry": [
{
"color": "normal",
"length": 32,
"selection": "LINESTRING(37.597742 55.770949, 37.597322 55.770779)",
"style": "normal"
},
{
"color": "fast",
"length": 80,
"selection": "LINESTRING(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": "17906468646154459840",
"outcoming_path": {
"distance": 2348,
"duration": 533,
"geometry": [
{
"color": "normal",
"length": 1309,
"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.609050 55.773088, 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": "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": "slow",
"length": 669,
"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.632283 55.772702, 37.632528 55.772668, 37.633038 55.772597, 37.633286 55.772569, 37.633809 55.772511)",
"style": "normal"
}
],
"names": ["Садовая-Триумфальная"]
},
"outcoming_path_comment": "2.3 км прямо",
"turn_angle": -91,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Держитесь правее на ул. Ананьевский переулок",
"icon": "crossroad_keep_right",
"id": "1623549810045995533",
"outcoming_path": {
"distance": 218,
"duration": 49,
"geometry": [
{
"color": "normal",
"length": 218,
"selection": "LINESTRING(37.633809 55.772511, 37.633918 55.772425, 37.634042 55.772354, 37.634104 55.772336, 37.634194 55.772325, 37.635809 55.772146, 37.636784 55.771995, 37.637096 55.771943)",
"style": "normal"
}
],
"names": ["Ананьевский переулок"]
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 30,
"turn_direction": "keep_right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Ананьевский переулок",
"icon": "crossroad_right",
"id": "6462009242451902980",
"outcoming_path": {
"distance": 189,
"duration": 40,
"geometry": [
{
"color": "normal",
"length": 25,
"selection": "LINESTRING(37.637096 55.771943, 37.637134 55.771935, 37.637154 55.771924, 37.637159 55.771916, 37.637166 55.771899, 37.637168 55.771871, 37.637164 55.771859, 37.637126 55.771735)",
"style": "normal"
},
{
"color": "fast",
"length": 164,
"selection": "LINESTRING(37.637126 55.771735, 37.636952 55.771356, 37.636822 55.771073, 37.636795 55.771006, 37.636736 55.770829, 37.636714 55.770765, 37.636683 55.770671, 37.636641 55.770413, 37.636625 55.770317, 37.636615 55.770258)",
"style": "normal"
}
],
"names": ["Ананьевский переулок"]
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Даев переулок",
"icon": "crossroad_left",
"id": "3973005446222210721",
"outcoming_path": {
"distance": 230,
"duration": 45,
"geometry": [
{
"color": "fast",
"length": 230,
"selection": "LINESTRING(37.636615 55.770258, 37.636761 55.770235, 37.636841 55.770222, 37.636946 55.770202, 37.637122 55.770169, 37.637326 55.770131, 37.637380 55.770121, 37.637452 55.770106, 37.637632 55.770063, 37.637809 55.770010, 37.637927 55.769974, 37.638181 55.769897, 37.638280 55.769867, 37.638442 55.769818, 37.638532 55.769791, 37.639105 55.769617, 37.639411 55.769524, 37.639487 55.769501, 37.639563 55.769478, 37.639729 55.769428, 37.639919 55.769370, 37.640034 55.769335)",
"style": "normal"
}
],
"names": ["Даев переулок"]
},
"outcoming_path_comment": "250 м прямо",
"turn_angle": -79,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Уланский переулок",
"icon": "crossroad_left",
"id": "14604899456399804217",
"outcoming_path": {
"distance": 198,
"duration": 45,
"geometry": [
{
"color": "normal",
"length": 7,
"selection": "LINESTRING(37.640034 55.769335, 37.640124 55.769383)",
"style": "normal"
},
{
"color": "fast",
"length": 33,
"selection": "LINESTRING(37.640124 55.769383, 37.640173 55.769409, 37.640512 55.769587)",
"style": "normal"
},
{
"color": "normal",
"length": 136,
"selection": "LINESTRING(37.640512 55.769587, 37.640794 55.769735, 37.641065 55.769878, 37.641154 55.769924, 37.641650 55.770186, 37.642124 55.770435)",
"style": "normal"
},
{
"color": "fast",
"length": 22,
"selection": "LINESTRING(37.642124 55.770435, 37.642245 55.770499, 37.642386 55.770573)",
"style": "normal"
}
],
"names": ["Уланский переулок"]
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": -71,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Садовая-Спасская",
"icon": "crossroad_right",
"id": "10824573042820759408",
"outcoming_path": {
"distance": 1113,
"duration": 161,
"geometry": [
{
"color": "slow",
"length": 241,
"selection": "LINESTRING(37.642386 55.770573, 37.642720 55.770474, 37.643276 55.770304, 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": "normal",
"length": 21,
"selection": "LINESTRING(37.645818 55.769531, 37.646121 55.769442)",
"style": "normal"
},
{
"color": "fast",
"length": 851,
"selection": "LINESTRING(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": "1.1 км прямо",
"turn_angle": 71,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "6886845600561568892",
"outcoming_path": {
"distance": 71,
"duration": 23,
"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",
"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": "14320602574673837108",
"outcoming_path": {
"distance": 54,
"duration": 16,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "9703018458164539300",
"outcoming_path": {
"distance": 36,
"duration": 11,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0,
"requested_filters": ["dirt_road", "toll_road", "ferry"],
"result_filters": ["dirt_road", "toll_road", "ferry"],
"route_id": "moscow-tax-back.m9/taxirouting/1751363960.568827",
"total_distance": 6082,
"total_duration": 1285,
"type": "taxirouting",
"ui_total_distance": {
"unit": "км",
"value": "6.1"
},
"ui_total_duration": "21 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

На велосипеде

При построении маршрута для проезда на велосипеде учитываются автомобильные дороги, велосипедные дорожки и тротуары. Вы можете настроить избегание автомобильных дорог и лестниц без пандусов, а также включить в ответ информацию о перепадах высот на маршруте.

Чтобы построить маршрут для велосипеда, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

  • transport: bicycle — способ передвижения: на велосипеде.

  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • ferry — паромные переправы;
    • highway — магистральные дороги (магистральные улицы города, междугородние трассы и федеральные трассы);
    • ban_car_road — автомобильные дороги;
    • ban_stairway — лестницы без пандусов.
  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

  • need_altitudes: true — информация о высотах на маршруте.

Пример запроса:

curl --location --request POST 'http://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": "bicycle",
"filters": [
"ban_car_road",
"ban_stairway"
],
"output": "detailed",
"locale": "ru",
"need_altitudes": true
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["ban_car_road", "ban_stairway"],
"locale": "ru",
"need_altitudes": true,
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"transport": "bicycle"
},
"result": [
{
"algorithm": "безопасный",
"altitudes_info": {
"elevation_gain": 7480,
"elevation_loss": 7740,
"max_altitude": 18260,
"max_road_angle": 9,
"min_altitude": 15840
},
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.582738 55.775419)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "10186710920355956494",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "9508254611797234639",
"outcoming_path": {
"distance": 6018,
"duration": 1703,
"geometry": [
{
"angles": "LINESTRING(-1, 1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, -2, -2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 2, -1, -1, 0, 1, -2, 0, 0, 0, 6, -2, 0, 2, 2, 2, -1, 1, 1, 1, 1, -7, 0, 0, -1, 1, -1, -3, -1, -1, -3, 2)",
"length": 1955,
"selection": "LINESTRING(37.582738 55.775419 17310, 37.582798 55.775434 17300, 37.582875 55.775336 17320, 37.582961 55.775228 17320, 37.583032 55.775138 17310, 37.583093 55.775080 17320, 37.583210 55.775119 17320, 37.583246 55.775123 17310, 37.583281 55.775115 17310, 37.583327 55.775088 17300, 37.583448 55.775021 17310, 37.583667 55.774892 17340, 37.584438 55.774440 17400, 37.584915 55.774171 17470, 37.585005 55.774118 17480, 37.585236 55.773982 17490, 37.585475 55.773843 17480, 37.585511 55.773820 17480, 37.585696 55.773702 17470, 37.585916 55.773562 17460, 37.586094 55.773449 17450, 37.586142 55.773422 17450, 37.586144 55.773409 17450, 37.586248 55.773360 17440, 37.586357 55.773301 17450, 37.586461 55.773356 17450, 37.586549 55.773403 17430, 37.586541 55.773429 17440, 37.587251 55.773816 17480, 37.587298 55.773842 17480, 37.587385 55.773890 17480, 37.587469 55.773935 17500, 37.587489 55.773946 17510, 37.588278 55.774383 17560, 37.588294 55.774386 17560, 37.588316 55.774382 17560, 37.588332 55.774377 17560, 37.590401 55.773166 17680, 37.590415 55.773151 17670, 37.590419 55.773139 17660, 37.590421 55.773123 17660, 37.590525 55.773064 17660, 37.590634 55.773000 17660, 37.590657 55.773001 17660, 37.590678 55.772999 17660, 37.590705 55.772990 17660, 37.591764 55.772370 17700, 37.591870 55.772307 17710, 37.591938 55.772267 17720, 37.591977 55.772236 17740, 37.592240 55.772081 17750, 37.593882 55.771114 17690, 37.593889 55.771103 17690, 37.593881 55.771094 17690, 37.593964 55.771045 17680, 37.594087 55.770991 17680, 37.595489 55.770160 17610, 37.595612 55.770065 17690, 37.595761 55.769943 17630, 37.595984 55.769782 17540, 37.596213 55.769619 17570, 37.596487 55.769422 17660, 37.596571 55.769362 17620, 37.597179 55.769013 17700, 37.597872 55.768632 17700, 37.598923 55.768055 17820, 37.598984 55.768020 17920, 37.599046 55.767985 17890, 37.599056 55.767981 17890, 37.599117 55.767957 17920, 37.599223 55.767917 17970, 37.599554 55.767735 18180, 37.599909 55.767538 18070, 37.600090 55.767439 18100, 37.600286 55.767331 18160, 37.600659 55.767126 18240, 37.600740 55.767082 18260, 37.600816 55.767041 18120, 37.601388 55.766727 18080, 37.601768 55.766519 18100, 37.602290 55.766233 18020, 37.603132 55.765771 18260, 37.603166 55.765752 18250, 37.603223 55.765721 18200, 37.603699 55.765460 18010, 37.604067 55.765259 17960, 37.603944 55.765202 17880, 37.604071 55.765133 17950)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-5, 1, -2, 1, 0, -4, 1, 1)",
"length": 116,
"selection": "LINESTRING(37.604071 55.765133 17950, 37.604146 55.765092 17850, 37.604356 55.764979 17910, 37.604491 55.764905 17840, 37.604626 55.764832 17880, 37.604812 55.764726 17880, 37.604922 55.764665 17750, 37.605194 55.764553 17820, 37.605481 55.764454 17900)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(6, -2, -4, -5, 0, 0, -1, 0, 0, -1, -8, 0, 0, 0, 2, -8, 2, 2, -2, -2, 1, -2, -1, -2, -2, 2, 0, 9, -1, 3, 3, -2, -2, -2, 0, -1, -1, -2, -2, -2, -1, -1, -2, 0, -1, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 2, -3, 3, 4, 2, 3)",
"length": 147,
"selection": "LINESTRING(37.605481 55.764454 17900, 37.605589 55.764564 18160, 37.605693 55.764675 18080, 37.605769 55.764738 17980, 37.605861 55.764802 17830, 37.605945 55.764846 17830, 37.606503 55.765085 17810, 37.607147 55.765361 17610, 37.607268 55.765270 17610, 37.607383 55.765318 17610, 37.607893 55.765533 17540, 37.608082 55.765612 17190, 37.608553 55.765811 17230, 37.608799 55.765915 17220, 37.609669 55.766282 17200, 37.609736 55.766310 17240, 37.609810 55.766335 17110, 37.609919 55.766371 17150, 37.610086 55.766442 17220, 37.610622 55.766665 17000, 37.611192 55.766906 16750, 37.611400 55.766993 16800, 37.611532 55.767040 16750, 37.612034 55.767252 16660, 37.612082 55.767275 16640, 37.612130 55.767301 16620, 37.612478 55.767450 16770, 37.613221 55.767766 16750, 37.613154 55.767816 16940, 37.613469 55.767950 16880, 37.613562 55.767976 16940, 37.613640 55.767992 16990, 37.613696 55.767999 16970, 37.613763 55.768002 16940, 37.613804 55.768001 16920, 37.614706 55.767948 16880, 37.614881 55.767938 16840, 37.615199 55.767919 16780, 37.615444 55.767898 16700, 37.615638 55.767875 16630, 37.615703 55.767867 16610, 37.615953 55.767828 16540, 37.616208 55.767789 16490, 37.616611 55.767729 16340, 37.616582 55.767670 16330, 37.616764 55.767642 16280, 37.617857 55.767477 16080, 37.617923 55.767460 16080, 37.617973 55.767444 16070, 37.618088 55.767427 16060, 37.618173 55.767408 16060, 37.618311 55.767383 16050, 37.618791 55.767311 16040, 37.620101 55.767114 15930, 37.620906 55.766993 15900, 37.620942 55.767070 15890, 37.621246 55.767014 15890, 37.621435 55.766979 15880, 37.621528 55.766962 15890, 37.621877 55.766897 15860, 37.621979 55.766879 15850, 37.622795 55.766728 15910, 37.622755 55.766658 15880, 37.622919 55.766628 15950, 37.623083 55.766598 15840, 37.623355 55.766548 16020, 37.623491 55.766523 16130, 37.623584 55.766505 16170, 37.623600 55.766560 16220)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(8)",
"length": 3,
"selection": "LINESTRING(37.623600 55.766560 16220, 37.623609 55.766590 16300)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 3, 2, 2, -1, 1, 0, 1, 0, 0, 1, 0, -1, 1, 0, 7, 0, 0, 1, 1)",
"length": 472,
"selection": "LINESTRING(37.623609 55.766590 16300, 37.623769 55.766572 16330, 37.623889 55.766559 16410, 37.624879 55.766494 16890, 37.626716 55.766372 17620, 37.626794 55.766367 17600, 37.627682 55.766377 17700, 37.627973 55.766381 17680, 37.628518 55.766387 17760, 37.629634 55.766399 17860, 37.630110 55.766404 17860, 37.630208 55.766405 17870, 37.631132 55.766416 17910, 37.631135 55.766358 17890, 37.631224 55.766360 17910, 37.631238 55.766356 17910, 37.631242 55.766353 17920, 37.631243 55.766349 17920, 37.631239 55.766340 17920, 37.631219 55.766301 17930, 37.631321 55.766284 17960)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-1)",
"length": 3,
"selection": "LINESTRING(37.631321 55.766284 17960, 37.631367 55.766277 17950)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-12, 8, 8, 9, 8, 4, 1, 1, 1, 1, -1, 0, 0, 0, -2, 4, 0, 0, 0, 0, 0, -8, 3, 0, 0, 0, -2, -1, 0, 0, -3, -1, 0, 1, 0, 0, -1, 0, -1, -1, 0, 0, -1, 0)",
"length": 20,
"selection": "LINESTRING(37.631367 55.766277 17950, 37.631462 55.766262 17720, 37.631482 55.766279 17780, 37.631498 55.766287 17810, 37.631515 55.766290 17840, 37.631539 55.766292 17880, 37.631557 55.766359 17970, 37.631838 55.766350 18030, 37.632422 55.766330 18100, 37.632592 55.766325 18120, 37.633115 55.766308 18180, 37.633617 55.766292 18100, 37.633822 55.766280 18100, 37.633888 55.766274 18100, 37.634016 55.766263 18100, 37.634536 55.766194 17920, 37.634626 55.766182 18000, 37.635135 55.766115 17950, 37.635268 55.766088 17940, 37.635391 55.766050 17930, 37.635612 55.765976 17910, 37.635805 55.765913 17920, 37.635920 55.765874 17700, 37.636061 55.765828 17810, 37.636109 55.765806 17810, 37.636162 55.765782 17810, 37.636569 55.765593 17840, 37.636831 55.765472 17730, 37.636866 55.765456 17720, 37.637147 55.765304 17750, 37.637257 55.765244 17750, 37.637372 55.765183 17660, 37.637592 55.765068 17600, 37.637938 55.764886 17620, 37.638488 55.764597 17810, 37.638900 55.764381 17780, 37.639389 55.764124 17750, 37.639432 55.764101 17740, 37.640461 55.763561 17800, 37.640736 55.763417 17720, 37.640896 55.763330 17660, 37.641078 55.763229 17640, 37.641158 55.763185 17630, 37.641300 55.763103 17610, 37.641468 55.763005 17620)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-3, -4, 1, -1, 0)",
"length": 73,
"selection": "LINESTRING(37.641468 55.763005 17620, 37.641507 55.763027 17590, 37.641641 55.763100 17460, 37.641753 55.763161 17500, 37.642096 55.763349 17430, 37.642311 55.763467 17450)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-3, 0, 1, 4, 0, 0, 0, 0, -1, 0, 2, 0, 1, 1, 0, 0, -1, -1, 0, 2, 2, 0, -3, -3, 1, 0, -2, 8, -2, -1, 0, 0, 0, 0, 0, -1, 1, -1, 0, -1, 0, 1, -1, 0, -1, -1, -4, 5, 0, -1)",
"length": 1032,
"selection": "LINESTRING(37.642311 55.763467 17450, 37.642360 55.763502 17400, 37.642788 55.763715 17400, 37.642850 55.763755 17420, 37.642903 55.763790 17480, 37.643003 55.763841 17480, 37.643267 55.763976 17450, 37.643676 55.764186 17470, 37.643759 55.764229 17470, 37.644043 55.764361 17380, 37.644346 55.764494 17380, 37.644500 55.764555 17440, 37.644535 55.764568 17440, 37.644670 55.764618 17470, 37.644715 55.764634 17480, 37.644976 55.764731 17500, 37.645143 55.764794 17510, 37.645339 55.764866 17460, 37.645517 55.764933 17410, 37.645746 55.765009 17400, 37.645862 55.765048 17440, 37.645904 55.765059 17460, 37.645985 55.765082 17460, 37.646074 55.765108 17400, 37.646104 55.765116 17380, 37.646469 55.765216 17420, 37.647644 55.765476 17420, 37.647888 55.765525 17320, 37.647987 55.765546 17490, 37.648074 55.765565 17450, 37.648612 55.765687 17380, 37.649098 55.765796 17380, 37.650630 55.766131 17320, 37.651251 55.766267 17320, 37.651658 55.766356 17280, 37.652400 55.766518 17320, 37.652460 55.766479 17300, 37.652525 55.766434 17320, 37.652887 55.766176 17150, 37.653261 55.765916 17190, 37.653397 55.765823 17150, 37.653654 55.765643 17170, 37.653716 55.765601 17180, 37.653770 55.765563 17170, 37.654315 55.765184 17110, 37.654590 55.764970 17050, 37.654682 55.764893 17020, 37.654735 55.764850 16940, 37.654785 55.764815 17020, 37.655412 55.764382 16950, 37.655367 55.764362 16940)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-1, 0, 0)",
"length": 26,
"selection": "LINESTRING(37.655367 55.764362 16940, 37.655404 55.764324 16930, 37.655521 55.764234 16920, 37.655607 55.764168 16930)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"length": 47,
"selection": "LINESTRING(37.655607 55.764168, 37.655657 55.764186, 37.655642 55.764197, 37.655435 55.764339, 37.655448 55.764345, 37.655656 55.764201)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"length": 49,
"selection": "LINESTRING(37.655656 55.764201, 37.655676 55.764187, 37.656124 55.764380, 37.656232 55.764426, 37.656191 55.764455)",
"style": "undergroundway",
"zlevel": "zlevel-negative"
},
{
"length": 92,
"selection": "LINESTRING(37.656191 55.764455, 37.656072 55.764537, 37.656086 55.764543, 37.656215 55.764455, 37.656228 55.764445, 37.656260 55.764460, 37.656429 55.764345, 37.656444 55.764331, 37.656432 55.764315, 37.656411 55.764303, 37.656492 55.764221, 37.656900 55.764367)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1)",
"length": 27,
"selection": "LINESTRING(37.656900 55.764367 16820, 37.656674 55.764578 16880)",
"style": "archway",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0, 3, 0, 0, 2, 1)",
"length": 30,
"selection": "LINESTRING(37.656674 55.764578 16880, 37.656728 55.764601 16890, 37.656741 55.764609 16890, 37.656749 55.764617 16900, 37.656755 55.764630 16900, 37.656755 55.764641 16900, 37.656749 55.764655 16910, 37.656589 55.764802 16960)",
"style": "living_zone",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(3)",
"length": 6,
"selection": "LINESTRING(37.656589 55.764802 16960, 37.656538 55.764857 17020)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(0, 0, -1)",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857 17020, 37.656510 55.764857 17020, 37.656485 55.764865 17020, 37.656303 55.764992 16960)",
"style": "living_zone",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0)",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992 16960, 37.656543 55.765075 17010, 37.656553 55.765080 17010)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "6 км прямо",
"type": "begin"
},
{
"comment": "finish",
"icon": "finish",
"id": "2147309371609976478",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0,
"requested_filters": ["ban_car_road", "ban_stairway"],
"result_filters": ["ban_car_road", "ban_stairway"],
"route_id": "moscow-bc-back.m9/bicyclerouting/1751367029.556324",
"total_distance": 6035,
"total_duration": 1715,
"type": "bicyclerouting",
"ui_total_distance": {
"unit": "км",
"value": "6"
},
"ui_total_duration": "28 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77541941309216,
"lon": 37.5827383882787
},
"projected_point": {
"lat": 55.77541941309216,
"lon": 37.5827383882787
},
"transit": false
},
{
"original_point": {
"lat": 55.76508089493828,
"lon": 37.6565535839955
},
"projected_point": {
"lat": 55.76508089493828,
"lon": 37.6565535839955
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

На самокате

При построении маршрута для проезда на самокате учитываются автомобильные дороги, велосипедные дорожки и тротуары. Вы можете настроить избегание автомобильных дорог и лестниц без пандусов, а также включить в ответ информацию о перепадах высот на маршруте.

Чтобы построить маршрут для самоката, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

  • transport: scooter — способ передвижения: на самокате.

  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • ferry — паромные переправы;
    • highway — магистральные дороги (магистральные улицы города, междугородние трассы и федеральные трассы);
    • ban_car_road — автомобильные дороги;
    • ban_stairway — лестницы без пандусов.
  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

  • need_altitudes: true — информация о высотах на маршруте.

Пример запроса:

curl --location --request POST 'http://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": "scooter",
"filters": [
"ban_car_road",
"ban_stairway"
],
"output": "detailed",
"locale": "ru",
"need_altitudes": true
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["ban_car_road", "ban_stairway"],
"locale": "ru",
"need_altitudes": true,
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"transport": "scooter"
},
"result": [
{
"algorithm": "безопасный",
"altitudes_info": {
"elevation_gain": 7550,
"elevation_loss": 7790,
"max_altitude": 18260,
"max_road_angle": 9,
"min_altitude": 15840
},
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.582738 55.775419)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656553 55.765080, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "10186710920355956494",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "9508254611797234639",
"outcoming_path": {
"distance": 6018,
"duration": 1703,
"geometry": [
{
"angles": "LINESTRING(-1, 1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, -2, -2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 2, -1, -1, 0, 1, -2, 0, 0, 0, 6, -2, 0, 2, 2, 2, -1, 1, 1, 1, 1, -7, 0, 0, -1, 1, -1, -3, -1, -1, -3, 2)",
"length": 1955,
"selection": "LINESTRING(37.582738 55.775419 17310, 37.582798 55.775434 17300, 37.582875 55.775336 17320, 37.582961 55.775228 17320, 37.583032 55.775138 17310, 37.583093 55.775080 17320, 37.583210 55.775119 17320, 37.583246 55.775123 17310, 37.583281 55.775115 17310, 37.583327 55.775088 17300, 37.583448 55.775021 17310, 37.583667 55.774892 17340, 37.584438 55.774440 17400, 37.584915 55.774171 17470, 37.585005 55.774118 17480, 37.585236 55.773982 17490, 37.585475 55.773843 17480, 37.585511 55.773820 17480, 37.585696 55.773702 17470, 37.585916 55.773562 17460, 37.586094 55.773449 17450, 37.586142 55.773422 17450, 37.586144 55.773409 17450, 37.586248 55.773360 17440, 37.586357 55.773301 17450, 37.586461 55.773356 17450, 37.586549 55.773403 17430, 37.586541 55.773429 17440, 37.587251 55.773816 17480, 37.587298 55.773842 17480, 37.587385 55.773890 17480, 37.587469 55.773935 17500, 37.587489 55.773946 17510, 37.588278 55.774383 17560, 37.588294 55.774386 17560, 37.588316 55.774382 17560, 37.588332 55.774377 17560, 37.590401 55.773166 17680, 37.590415 55.773151 17670, 37.590419 55.773139 17660, 37.590421 55.773123 17660, 37.590525 55.773064 17660, 37.590634 55.773000 17660, 37.590657 55.773001 17660, 37.590678 55.772999 17660, 37.590705 55.772990 17660, 37.591764 55.772370 17700, 37.591870 55.772307 17710, 37.591938 55.772267 17720, 37.591977 55.772236 17740, 37.592240 55.772081 17750, 37.593882 55.771114 17690, 37.593889 55.771103 17690, 37.593881 55.771094 17690, 37.593964 55.771045 17680, 37.594087 55.770991 17680, 37.595489 55.770160 17610, 37.595612 55.770065 17690, 37.595761 55.769943 17630, 37.595984 55.769782 17540, 37.596213 55.769619 17570, 37.596487 55.769422 17660, 37.596571 55.769362 17620, 37.597179 55.769013 17700, 37.597872 55.768632 17700, 37.598923 55.768055 17820, 37.598984 55.768020 17920, 37.599046 55.767985 17890, 37.599056 55.767981 17890, 37.599117 55.767957 17920, 37.599223 55.767917 17970, 37.599554 55.767735 18180, 37.599909 55.767538 18070, 37.600090 55.767439 18100, 37.600286 55.767331 18160, 37.600659 55.767126 18240, 37.600740 55.767082 18260, 37.600816 55.767041 18120, 37.601388 55.766727 18080, 37.601768 55.766519 18100, 37.602290 55.766233 18020, 37.603132 55.765771 18260, 37.603166 55.765752 18250, 37.603223 55.765721 18200, 37.603699 55.765460 18010, 37.604067 55.765259 17960, 37.603944 55.765202 17880, 37.604071 55.765133 17950)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-5, 1, -2, 1, 0, -4, 1, 1)",
"length": 116,
"selection": "LINESTRING(37.604071 55.765133 17950, 37.604146 55.765092 17850, 37.604356 55.764979 17910, 37.604491 55.764905 17840, 37.604626 55.764832 17880, 37.604812 55.764726 17880, 37.604922 55.764665 17750, 37.605194 55.764553 17820, 37.605481 55.764454 17900)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(6, -2, -4, -5, 0, 0, -1, 0, 0, -1, -8, 0, 0, 0, 2, -8, 2, 2, -2, -2, 1, -2, -1, -2, -2, 2, 0, 9, -1, 3, 3, -2, -2, -2, 0, -1, -1, -2, -2, -2, -1, -1, -2, 0, -1, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 2, -3, 3, 4, 2, 3)",
"length": 147,
"selection": "LINESTRING(37.605481 55.764454 17900, 37.605589 55.764564 18160, 37.605693 55.764675 18080, 37.605769 55.764738 17980, 37.605861 55.764802 17830, 37.605945 55.764846 17830, 37.606503 55.765085 17810, 37.607147 55.765361 17610, 37.607268 55.765270 17610, 37.607383 55.765318 17610, 37.607893 55.765533 17540, 37.608082 55.765612 17190, 37.608553 55.765811 17230, 37.608799 55.765915 17220, 37.609669 55.766282 17200, 37.609736 55.766310 17240, 37.609810 55.766335 17110, 37.609919 55.766371 17150, 37.610086 55.766442 17220, 37.610622 55.766665 17000, 37.611192 55.766906 16750, 37.611400 55.766993 16800, 37.611532 55.767040 16750, 37.612034 55.767252 16660, 37.612082 55.767275 16640, 37.612130 55.767301 16620, 37.612478 55.767450 16770, 37.613221 55.767766 16750, 37.613154 55.767816 16940, 37.613469 55.767950 16880, 37.613562 55.767976 16940, 37.613640 55.767992 16990, 37.613696 55.767999 16970, 37.613763 55.768002 16940, 37.613804 55.768001 16920, 37.614706 55.767948 16880, 37.614881 55.767938 16840, 37.615199 55.767919 16780, 37.615444 55.767898 16700, 37.615638 55.767875 16630, 37.615703 55.767867 16610, 37.615953 55.767828 16540, 37.616208 55.767789 16490, 37.616611 55.767729 16340, 37.616582 55.767670 16330, 37.616764 55.767642 16280, 37.617857 55.767477 16080, 37.617923 55.767460 16080, 37.617973 55.767444 16070, 37.618088 55.767427 16060, 37.618173 55.767408 16060, 37.618311 55.767383 16050, 37.618791 55.767311 16040, 37.620101 55.767114 15930, 37.620906 55.766993 15900, 37.620942 55.767070 15890, 37.621246 55.767014 15890, 37.621435 55.766979 15880, 37.621528 55.766962 15890, 37.621877 55.766897 15860, 37.621979 55.766879 15850, 37.622795 55.766728 15910, 37.622755 55.766658 15880, 37.622919 55.766628 15950, 37.623083 55.766598 15840, 37.623355 55.766548 16020, 37.623491 55.766523 16130, 37.623584 55.766505 16170, 37.623600 55.766560 16220)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(4)",
"length": 3,
"selection": "LINESTRING(37.623600 55.766560 16220, 37.623609 55.766590 16260)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(2, 3, 2, 2, 1, 1, 0, 1, 0, 0, 1, 0, -1, 1, 0, 7, 0, 0, 1, 1)",
"length": 472,
"selection": "LINESTRING(37.623609 55.766590 16260, 37.623769 55.766572 16330, 37.623889 55.766559 16410, 37.624879 55.766494 16890, 37.626716 55.766372 17580, 37.626794 55.766367 17600, 37.627682 55.766377 17700, 37.627973 55.766381 17680, 37.628518 55.766387 17760, 37.629634 55.766399 17860, 37.630110 55.766404 17860, 37.630208 55.766405 17870, 37.631132 55.766416 17910, 37.631135 55.766358 17890, 37.631224 55.766360 17910, 37.631238 55.766356 17910, 37.631242 55.766353 17920, 37.631243 55.766349 17920, 37.631239 55.766340 17920, 37.631219 55.766301 17930, 37.631321 55.766284 17960)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-1)",
"length": 3,
"selection": "LINESTRING(37.631321 55.766284 17960, 37.631367 55.766277 17950)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-12, 8, 8, 9, 8, 4, 1, 1, 1, 1, -1, 0, 0, 0, -2, 4, 0, 0, 0, 0, 0, -8, 3, 0, 0, 0, -2, -1, 0, 0, -3, -1, 0, 1, 0, 0, -1, 0, -1, -1, 0, 0, -1, -3)",
"length": 20,
"selection": "LINESTRING(37.631367 55.766277 17950, 37.631462 55.766262 17720, 37.631482 55.766279 17780, 37.631498 55.766287 17810, 37.631515 55.766290 17840, 37.631539 55.766292 17880, 37.631557 55.766359 17970, 37.631838 55.766350 18030, 37.632422 55.766330 18100, 37.632592 55.766325 18120, 37.633115 55.766308 18180, 37.633617 55.766292 18100, 37.633822 55.766280 18100, 37.633888 55.766274 18100, 37.634016 55.766263 18100, 37.634536 55.766194 17920, 37.634626 55.766182 18000, 37.635135 55.766115 17950, 37.635268 55.766088 17940, 37.635391 55.766050 17930, 37.635612 55.765976 17910, 37.635805 55.765913 17920, 37.635920 55.765874 17700, 37.636061 55.765828 17810, 37.636109 55.765806 17810, 37.636162 55.765782 17810, 37.636569 55.765593 17840, 37.636831 55.765472 17730, 37.636866 55.765456 17720, 37.637147 55.765304 17750, 37.637257 55.765244 17750, 37.637372 55.765183 17660, 37.637592 55.765068 17600, 37.637938 55.764886 17620, 37.638488 55.764597 17810, 37.638900 55.764381 17780, 37.639389 55.764124 17750, 37.639432 55.764101 17740, 37.640461 55.763561 17800, 37.640736 55.763417 17720, 37.640896 55.763330 17660, 37.641078 55.763229 17640, 37.641158 55.763185 17630, 37.641300 55.763103 17610, 37.641468 55.763005 17490)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(9, -4, 1, -1, 0)",
"length": 73,
"selection": "LINESTRING(37.641468 55.763005 17490, 37.641507 55.763027 17590, 37.641641 55.763100 17460, 37.641753 55.763161 17500, 37.642096 55.763349 17430, 37.642311 55.763467 17450)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-3, 0, 1, 4, 0, 0, 0, 0, -1, 0, 2, 0, 1, 1, 0, 0, -1, -1, 0, 2, 2, 0, -3, -3, 1, 0, -2, 8, -2, -1, 0, 0, 0, 0, 0, -1, 1, -1, 0, -1, 0, 1, -1, 0, -1, -1, -4, 5, 0, -1)",
"length": 1032,
"selection": "LINESTRING(37.642311 55.763467 17450, 37.642360 55.763502 17400, 37.642788 55.763715 17400, 37.642850 55.763755 17420, 37.642903 55.763790 17480, 37.643003 55.763841 17480, 37.643267 55.763976 17450, 37.643676 55.764186 17470, 37.643759 55.764229 17470, 37.644043 55.764361 17380, 37.644346 55.764494 17380, 37.644500 55.764555 17440, 37.644535 55.764568 17440, 37.644670 55.764618 17470, 37.644715 55.764634 17480, 37.644976 55.764731 17500, 37.645143 55.764794 17510, 37.645339 55.764866 17460, 37.645517 55.764933 17410, 37.645746 55.765009 17400, 37.645862 55.765048 17440, 37.645904 55.765059 17460, 37.645985 55.765082 17460, 37.646074 55.765108 17400, 37.646104 55.765116 17380, 37.646469 55.765216 17420, 37.647644 55.765476 17420, 37.647888 55.765525 17320, 37.647987 55.765546 17490, 37.648074 55.765565 17450, 37.648612 55.765687 17380, 37.649098 55.765796 17380, 37.650630 55.766131 17320, 37.651251 55.766267 17320, 37.651658 55.766356 17280, 37.652400 55.766518 17320, 37.652460 55.766479 17300, 37.652525 55.766434 17320, 37.652887 55.766176 17150, 37.653261 55.765916 17190, 37.653397 55.765823 17150, 37.653654 55.765643 17170, 37.653716 55.765601 17180, 37.653770 55.765563 17170, 37.654315 55.765184 17110, 37.654590 55.764970 17050, 37.654682 55.764893 17020, 37.654735 55.764850 16940, 37.654785 55.764815 17020, 37.655412 55.764382 16950, 37.655367 55.764362 16940)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-1, 0, 0)",
"length": 26,
"selection": "LINESTRING(37.655367 55.764362 16940, 37.655404 55.764324 16930, 37.655521 55.764234 16920, 37.655607 55.764168 16930)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"length": 47,
"selection": "LINESTRING(37.655607 55.764168, 37.655657 55.764186, 37.655642 55.764197, 37.655435 55.764339, 37.655448 55.764345, 37.655656 55.764201)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"length": 49,
"selection": "LINESTRING(37.655656 55.764201, 37.655676 55.764187, 37.656124 55.764380, 37.656232 55.764426, 37.656191 55.764455)",
"style": "undergroundway",
"zlevel": "zlevel-negative"
},
{
"length": 92,
"selection": "LINESTRING(37.656191 55.764455, 37.656072 55.764537, 37.656086 55.764543, 37.656215 55.764455, 37.656228 55.764445, 37.656260 55.764460, 37.656429 55.764345, 37.656444 55.764331, 37.656432 55.764315, 37.656411 55.764303, 37.656492 55.764221, 37.656900 55.764367)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1)",
"length": 27,
"selection": "LINESTRING(37.656900 55.764367 16820, 37.656674 55.764578 16880)",
"style": "archway",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0, 3, 0, 0, 2, 1)",
"length": 30,
"selection": "LINESTRING(37.656674 55.764578 16880, 37.656728 55.764601 16890, 37.656741 55.764609 16890, 37.656749 55.764617 16900, 37.656755 55.764630 16900, 37.656755 55.764641 16900, 37.656749 55.764655 16910, 37.656589 55.764802 16960)",
"style": "living_zone",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(3)",
"length": 6,
"selection": "LINESTRING(37.656589 55.764802 16960, 37.656538 55.764857 17020)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(0, 0, -1)",
"length": 21,
"selection": "LINESTRING(37.656538 55.764857 17020, 37.656510 55.764857 17020, 37.656485 55.764865 17020, 37.656303 55.764992 16960)",
"style": "living_zone",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0)",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992 16960, 37.656543 55.765075 17010, 37.656553 55.765080 17010)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "6 км прямо",
"type": "begin"
},
{
"comment": "finish",
"icon": "finish",
"id": "2147309371609976478",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"requested_filters": ["ban_car_road", "ban_stairway"],
"result_filters": ["ban_car_road", "ban_stairway"],
"route_id": "moscow-bc-back.m9/scooterrouting/1751533964.075094",
"total_distance": 6035,
"total_duration": 1715,
"type": "scooterrouting",
"ui_total_distance": {
"unit": "км",
"value": "6"
},
"ui_total_duration": "28 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77541941309216,
"lon": 37.5827383882787
},
"projected_point": {
"lat": 55.77541941309216,
"lon": 37.5827383882787
},
"transit": false
},
{
"original_point": {
"lat": 55.76508089493828,
"lon": 37.6565535839955
},
"projected_point": {
"lat": 55.76508089493828,
"lon": 37.6565535839955
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

На мотоцикле

При построении маршрута для проезда на мотоцикле используются параметры обычного автомобильного маршрута, но учитывается, что в пробках мотоциклы обычно двигаются быстрее, чем автомобили.

Чтобы построить маршрут для мотоцикла, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

  • transport: motorcycle — способ передвижения: на мотоцикле.

  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • toll_road — платные дороги;
    • ferry — переправы.
  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

Пример запроса:

curl --location --request POST 'http://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": "motorcycle",
"filters": [
"dirt_road",
"toll_road",
"ferry"
],
"output": "detailed",
"locale": "ru"
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["dirt_road", "toll_road", "ferry"],
"locale": "ru",
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"transport": "motorcycle"
},
"result": [
{
"algorithm": "",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "17184732537550592939",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "16606005363209009026",
"outcoming_path": {
"distance": 509,
"duration": 69,
"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": "normal",
"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": "5759937699142787969",
"outcoming_path": {
"distance": 406,
"duration": 53,
"geometry": [
{
"color": "slow",
"length": 82,
"selection": "LINESTRING(37.588708 55.772038, 37.588824 55.772103, 37.588938 55.772168, 37.589561 55.772519, 37.589644 55.772566)",
"style": "normal"
},
{
"color": "normal",
"length": 141,
"selection": "LINESTRING(37.589644 55.772566, 37.589753 55.772628, 37.590258 55.772912, 37.590321 55.772949, 37.590525 55.773064, 37.590635 55.773126, 37.590786 55.773209, 37.590890 55.773267, 37.591282 55.773479)",
"style": "normal"
},
{
"color": "slow",
"length": 7,
"selection": "LINESTRING(37.591282 55.773479, 37.591366 55.773525)",
"style": "normal"
},
{
"color": "normal",
"length": 176,
"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, 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": "9048196156401769469",
"outcoming_path": {
"distance": 489,
"duration": 64,
"geometry": [
{
"color": "fast",
"length": 122,
"selection": "LINESTRING(37.593407 55.774635, 37.593491 55.774586, 37.593856 55.774372, 37.594049 55.774259, 37.594318 55.774102, 37.594774 55.773836)",
"style": "normal"
},
{
"color": "normal",
"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": "fast",
"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": "6980135699651552580",
"outcoming_path": {
"distance": 89,
"duration": 12,
"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": "6596706930952666171",
"outcoming_path": {
"distance": 112,
"duration": 15,
"geometry": [
{
"color": "slow",
"length": 32,
"selection": "LINESTRING(37.597742 55.770949, 37.597322 55.770779)",
"style": "normal"
},
{
"color": "normal",
"length": 80,
"selection": "LINESTRING(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": "4594365839867655071",
"outcoming_path": {
"distance": 4042,
"duration": 418,
"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": 157,
"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)",
"style": "normal"
},
{
"color": "slow",
"length": 55,
"selection": "LINESTRING(37.600050 55.770989, 37.600407 55.771103, 37.600831 55.771230)",
"style": "normal"
},
{
"color": "normal",
"length": 245,
"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)",
"style": "normal"
},
{
"color": "slow",
"length": 20,
"selection": "LINESTRING(37.604227 55.772338, 37.604516 55.772426)",
"style": "normal"
},
{
"color": "normal",
"length": 397,
"selection": "LINESTRING(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.609050 55.773088, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247)",
"style": "normal"
},
{
"color": "fast",
"length": 416,
"selection": "LINESTRING(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": 574,
"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.632283 55.772702)",
"style": "normal"
},
{
"color": "normal",
"length": 95,
"selection": "LINESTRING(37.632283 55.772702, 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": "slow",
"length": 580,
"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.643276 55.770304, 37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580)",
"style": "normal"
},
{
"color": "normal",
"length": 108,
"selection": "LINESTRING(37.645657 55.769580, 37.645818 55.769531, 37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158)",
"style": "normal"
},
{
"color": "fast",
"length": 746,
"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, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923, 37.655597 55.764466)",
"style": "normal"
},
{
"color": "normal",
"length": 29,
"selection": "LINESTRING(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": "15757417901432369183",
"outcoming_path": {
"distance": 71,
"duration": 9,
"geometry": [
{
"color": "normal",
"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",
"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": "13848069363410112590",
"outcoming_path": {
"distance": 54,
"duration": 16,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "17845015395914757233",
"outcoming_path": {
"distance": 36,
"duration": 11,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 1.0,
"requested_filters": ["dirt_road", "toll_road", "ferry"],
"result_filters": ["dirt_road", "toll_road", "ferry"],
"route_id": "neighborhood-mc-back.m1/motorcyclerouting/1751539767.649819",
"total_distance": 5808,
"total_duration": 667,
"type": "motorcyclerouting",
"ui_total_distance": {
"unit": "км",
"value": "5.8"
},
"ui_total_duration": "11 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
},
{
"algorithm": "",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "5427181690415742039",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "6280486154548928096",
"outcoming_path": {
"distance": 30,
"duration": 4,
"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"
}
],
"names": ["Тверская Застава площадь"]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "3781517812095291299",
"outcoming_path": {
"distance": 164,
"duration": 22,
"geometry": [
{
"color": "fast",
"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": "fast",
"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": "9346860127826045021",
"outcoming_path": {
"distance": 1256,
"duration": 138,
"geometry": [
{
"color": "slow-jams",
"length": 491,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586158 55.775747, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126)",
"style": "normal"
},
{
"color": "normal",
"length": 310,
"selection": "LINESTRING(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": "15034697373278610542",
"outcoming_path": {
"distance": 282,
"duration": 40,
"geometry": [
{
"color": "slow",
"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": "17809096250163197490",
"outcoming_path": {
"distance": 165,
"duration": 24,
"geometry": [
{
"color": "slow",
"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": "11998068602798802868",
"outcoming_path": {
"distance": 129,
"duration": 19,
"geometry": [
{
"color": "slow",
"length": 129,
"selection": "LINESTRING(37.593599 55.765935, 37.593518 55.765985, 37.592996 55.766304, 37.592644 55.766520, 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": "10746466420656042615",
"outcoming_path": {
"distance": 4545,
"duration": 467,
"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": "fast",
"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": "fast",
"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": 205,
"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)",
"style": "normal"
},
{
"color": "slow",
"length": 20,
"selection": "LINESTRING(37.604227 55.772338, 37.604516 55.772426)",
"style": "normal"
},
{
"color": "normal",
"length": 397,
"selection": "LINESTRING(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.609050 55.773088, 37.609234 55.773109, 37.610156 55.773194, 37.610728 55.773247)",
"style": "normal"
},
{
"color": "fast",
"length": 416,
"selection": "LINESTRING(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": 574,
"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.632283 55.772702)",
"style": "normal"
},
{
"color": "normal",
"length": 95,
"selection": "LINESTRING(37.632283 55.772702, 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": "slow",
"length": 580,
"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.643276 55.770304, 37.643525 55.770234, 37.643708 55.770178, 37.643975 55.770092, 37.644348 55.769976, 37.644647 55.769882, 37.645657 55.769580)",
"style": "normal"
},
{
"color": "normal",
"length": 108,
"selection": "LINESTRING(37.645657 55.769580, 37.645818 55.769531, 37.646121 55.769442, 37.646389 55.769364, 37.647223 55.769158)",
"style": "normal"
},
{
"color": "fast",
"length": 746,
"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, 37.653423 55.765990, 37.653591 55.765874, 37.653911 55.765652, 37.654967 55.764923, 37.655597 55.764466)",
"style": "normal"
},
{
"color": "normal",
"length": 29,
"selection": "LINESTRING(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": "14892986695414913226",
"outcoming_path": {
"distance": 71,
"duration": 10,
"geometry": [
{
"color": "normal",
"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",
"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": "1884141622516007490",
"outcoming_path": {
"distance": 54,
"duration": 16,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "8078375846036869019",
"outcoming_path": {
"distance": 36,
"duration": 11,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 1.0,
"requested_filters": ["dirt_road", "toll_road", "ferry"],
"result_filters": ["dirt_road", "toll_road", "ferry"],
"route_id": "neighborhood-mc-back.m1/motorcyclerouting/1751539767.652072",
"total_distance": 6732,
"total_duration": 749,
"type": "motorcyclerouting",
"ui_total_distance": {
"unit": "км",
"value": "6.7"
},
"ui_total_duration": "12 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

На грузовом транспорте

При построении маршрута для проезда на грузовом транспорте учитываются параметры автомобильного маршрута и ограничения на передвижение грузовиков. Вы можете дополнительно указать габариты грузовика, тип перевозимого груза, а также наличие пропусков для въезда на определённые территории.

Нужен пропуск

Для въезда в город или его части может потребоваться пропуск.

  1. Чтобы получить список всех действующих пропусков для грузового транспорта, отправьте GET-запрос на /truck_passes/1.0.0/global:

    Пример запроса:

    curl --location --request GET 'http://routing.api.2gis.com/truck_passes/1.0.0/global?key=API_KEY' \
    --header 'Accept: application/json'

    Пример ответа:

    response.json
    [
    {
    "id": 4,
    "names": [
    {
    "localization": "Ru",
    "name": "Санкт-Петербург (круглосуточный)"
    }
    ],
    "pass_zone_ids": [5]
    },
    {
    "id": 8,
    "names": [
    {
    "localization": "Ru",
    "name": "Москва. СК (ночной)"
    }
    ],
    "pass_zone_ids": [4, 3, 2]
    },
    {
    "id": 7,
    "names": [
    {
    "localization": "Ru",
    "name": "Москва. СК (дневной)"
    }
    ],
    "pass_zone_ids": [4, 3, 2]
    },
    {
    "id": 6,
    "names": [
    {
    "localization": "Ru",
    "name": "Москва. ТТК (дневной)"
    }
    ],
    "pass_zone_ids": [4, 2]
    },
    {
    "id": 5,
    "names": [
    {
    "localization": "Ru",
    "name": "Москва. ТТК (ночной)"
    }
    ],
    "pass_zone_ids": [4, 2]
    },
    {
    "id": 3,
    "names": [
    {
    "localization": "Ru",
    "name": "Москва. МКАД (ночной)"
    }
    ],
    "pass_zone_ids": [2]
    },
    {
    "id": 2,
    "names": [
    {
    "localization": "Ru",
    "name": "Москва. МКАД (дневной)"
    }
    ],
    "pass_zone_ids": [2]
    }
    ]

  2. Чтобы построить маршрут для грузового транспорта, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

    • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

    • transport: truck — способ передвижения: на грузовом транспорте.

    • output — формат выдачи результата:

      • summary — упрощенная выдача, в ответе только время и длина маршрута;
      • detailed — полная выдача с геометрией маршрута.
    • params — дополнительные параметры:

      • truck — параметры грузового транспорта:

        • max_perm_mass — максимальная разрешённая масса (тонны);
        • mass — фактическая масса (тонны);
        • axle_load — нагрузка на ось (тонны);
        • height — высота (метры);
        • width — ширины (метры);
        • length — длина (метры);
        • dangerous_cargo — опасный груз;
        • explosive_cargo — взрывчатый груз;
        • pass_zone_pass_ids — идентификаторы пропусков.
    • filters — исключение определённых типов дорог, если необходимо:

      • dirt_road — грунтовые дороги;
      • toll_road — платные дороги;
      • ferry — переправы.
    • locale: ru — текстовые описания элементов маршрута на русском языке.

    • need_altitudes: true — информация о высотах на маршруте.

    Пример запроса:

    curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "points": [
    {
    "lon": 37.582591,
    "lat": 55.775364,
    "type": "stop"
    },
    {
    "lon": 37.656625,
    "lat": 55.765036,
    "type": "stop"
    }
    ],
    "transport": "truck",
    "output": "detailed",
    "params": {
    "truck": {
    "max_perm_mass": 5,
    "mass": 4,
    "axle_load": 1.5,
    "height": 2.57,
    "width": 2.5,
    "length": 5.44,
    "dangerous_cargo": true,
    "explosive_cargo": true,
    "pass_zone_pass_ids": [4, 3, 2]
    }
    },
    "filters": [
    "dirt_road",
    "toll_road"
    ],
    "locale": "ru",
    "need_altitudes": true
    }'

    Пример ответа:

    response.json
    {
    "message": null,
    "query": {
    "filters": ["dirt_road", "toll_road"],
    "locale": "ru",
    "need_altitudes": true,
    "output": "detailed",
    "params": {
    "truck": {
    "axle_load": 1.5,
    "dangerous_cargo": true,
    "explosive_cargo": true,
    "height": 2.57,
    "length": 5.44,
    "mass": 4,
    "max_perm_mass": 5,
    "pass_zone_pass_ids": [4, 3, 2],
    "width": 2.5
    }
    },
    "points": [
    {
    "lat": 55.775364,
    "lon": 37.582591,
    "type": "stop"
    },
    {
    "lat": 55.765036,
    "lon": 37.656625,
    "type": "stop"
    }
    ],
    "transport": "truck"
    },
    "result": [
    {
    "algorithm": "с учётом пробок",
    "altitudes_info": {
    "elevation_gain": 5390,
    "elevation_loss": 6060,
    "max_altitude": 17720,
    "max_road_angle": 9,
    "min_altitude": 14260
    },
    "are_truck_pass_zones_ignored": true,
    "begin_pedestrian_path": {
    "geometry": {
    "selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
    }
    },
    "end_pedestrian_path": {
    "geometry": {
    "selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
    }
    },
    "features": {
    "truck": "full"
    },
    "filter_road_types": ["highway"],
    "id": "2159430338266563597",
    "maneuvers": [
    {
    "comment": "start",
    "icon": "start",
    "id": "6027406716251449836",
    "outcoming_path": {
    "distance": 30,
    "duration": 9,
    "geometry": [
    {
    "angles": "LINESTRING(1, 0, 0, 0)",
    "color": "normal",
    "length": 30,
    "selection": "LINESTRING(37.583086 55.775486 17300, 37.583150 55.775405 17320, 37.583231 55.775307 17310, 37.583253 55.775281 17310, 37.583307 55.775231 17310)",
    "style": "normal"
    }
    ],
    "names": ["Тверская Застава площадь"]
    },
    "outcoming_path_comment": "30 м прямо",
    "type": "begin"
    },
    {
    "comment": "Поворот налево",
    "icon": "crossroad_left",
    "id": "3844604180379433197",
    "outcoming_path": {
    "distance": 164,
    "duration": 95,
    "geometry": [
    {
    "angles": "LINESTRING(0, 1, 0, 0, 1, 0)",
    "color": "slow",
    "length": 76,
    "selection": "LINESTRING(37.583307 55.775231 17310, 37.583561 55.775318 17320, 37.583628 55.775341 17330, 37.583734 55.775385 17330, 37.583827 55.775434 17340, 37.584035 55.775570 17380, 37.584217 55.775689 17390)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0)",
    "color": "normal",
    "length": 88,
    "selection": "LINESTRING(37.584217 55.775689 17390, 37.584347 55.775775 17400, 37.584624 55.775956 17440, 37.584979 55.776188 17450, 37.585058 55.776240 17450, 37.585154 55.776303 17450)",
    "style": "normal"
    }
    ],
    "names": []
    },
    "outcoming_path_comment": "150 м прямо",
    "turn_angle": -92,
    "turn_direction": "left",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо на ул. 1-я Тверская-Ямская",
    "icon": "crossroad_right",
    "id": "3857464697337935224",
    "outcoming_path": {
    "distance": 801,
    "duration": 173,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 0)",
    "color": "normal",
    "length": 491,
    "selection": "LINESTRING(37.585154 55.776303 17450, 37.585445 55.776157 17460, 37.585492 55.776131 17460, 37.585658 55.776039 17470, 37.586158 55.775747 17480, 37.588010 55.774663 17550, 37.588280 55.774505 17560, 37.590369 55.773281 17660, 37.590635 55.773126 17660)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0)",
    "color": "fast",
    "length": 152,
    "selection": "LINESTRING(37.590635 55.773126 17660, 37.592026 55.772311 17720, 37.592333 55.772132 17710)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0)",
    "color": "normal",
    "length": 158,
    "selection": "LINESTRING(37.592333 55.772132 17710, 37.594081 55.771108 17680)",
    "style": "normal"
    }
    ],
    "names": ["1-я Тверская-Ямская"]
    },
    "outcoming_path_comment": "800 м прямо",
    "turn_angle": 91,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо на ул. Гашека",
    "icon": "crossroad_right",
    "id": "10886345246117088480",
    "outcoming_path": {
    "distance": 168,
    "duration": 67,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, -1, 0, -2, -1, 1)",
    "color": "normal",
    "length": 168,
    "selection": "LINESTRING(37.594081 55.771108 17680, 37.593964 55.771045 17680, 37.593877 55.770999 17690, 37.593641 55.770872 17670, 37.593176 55.770623 17580, 37.593065 55.770563 17570, 37.592993 55.770525 17540, 37.592199 55.770099 17400, 37.592101 55.770047 17420)",
    "style": "normal"
    }
    ],
    "names": ["Гашека"]
    },
    "outcoming_path_comment": "150 м прямо",
    "turn_angle": 90,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Поворот налево на ул. 2-я Брестская",
    "icon": "crossroad_left",
    "id": "11407613687607344720",
    "outcoming_path": {
    "distance": 206,
    "duration": 85,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 4, 0, 0, 1, -1, 1, 2)",
    "color": "normal",
    "length": 206,
    "selection": "LINESTRING(37.592101 55.770047 17420, 37.592212 55.769983 17420, 37.592449 55.769843 17420, 37.592770 55.769654 17430, 37.593209 55.769397 17450, 37.593661 55.769131 17460, 37.593700 55.769108 17500, 37.593817 55.769040 17490, 37.593994 55.768937 17470, 37.594028 55.768916 17480, 37.594239 55.768793 17420, 37.594289 55.768763 17440, 37.594431 55.768680 17500)",
    "style": "normal"
    }
    ],
    "names": ["2-я Брестская"]
    },
    "outcoming_path_comment": "200 м прямо",
    "turn_angle": -90,
    "turn_direction": "left",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо на ул. Большая Садовая",
    "icon": "crossroad_right",
    "id": "11043301074246036784",
    "outcoming_path": {
    "distance": 8172,
    "duration": 1515,
    "geometry": [
    {
    "angles": "LINESTRING(-1, 0, -1, 0)",
    "color": "normal",
    "length": 170,
    "selection": "LINESTRING(37.594431 55.768680 17500, 37.594346 55.768628 17480, 37.593543 55.768059 17420, 37.593308 55.767862 17340, 37.592814 55.767453 17310)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)",
    "color": "slow",
    "length": 845,
    "selection": "LINESTRING(37.592814 55.767453 17310, 37.592717 55.767386 17310, 37.592365 55.767140 17310, 37.591674 55.766659 17320, 37.591448 55.766501 17310, 37.591024 55.766200 17310, 37.590734 55.765995 17300, 37.590646 55.765932 17300, 37.590323 55.765704 17300, 37.590212 55.765625 17300, 37.589852 55.765370 17290, 37.589556 55.765142 17280, 37.589238 55.764885 17260, 37.588929 55.764616 17240, 37.588592 55.764313 17230, 37.588277 55.764015 17220, 37.588007 55.763744 17210, 37.587735 55.763438 17200, 37.587531 55.763196 17200, 37.587417 55.763061 17200, 37.587347 55.762978 17200, 37.586968 55.762487 17190, 37.586911 55.762414 17180, 37.586792 55.762252 17180, 37.586305 55.761590 17180, 37.586265 55.761535 17180, 37.585827 55.760940 17120)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 1, 0, -3)",
    "color": "normal",
    "length": 204,
    "selection": "LINESTRING(37.585827 55.760940 17120, 37.585436 55.760408 17110, 37.585400 55.760360 17110, 37.585361 55.760297 17110, 37.585229 55.760091 17110, 37.584994 55.759724 17090, 37.584986 55.759712 17090, 37.584873 55.759517 17060, 37.584848 55.759474 17070, 37.584719 55.759224 17080, 37.584702 55.759192 17050)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 1)",
    "color": "normal",
    "length": 41,
    "selection": "LINESTRING(37.584702 55.759192 17050, 37.584583 55.758920 17050, 37.584552 55.758831 17080)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0)",
    "color": "normal",
    "length": 35,
    "selection": "LINESTRING(37.584552 55.758831 17080, 37.584540 55.758798 17080, 37.584481 55.758631 17060, 37.584447 55.758512 17050)",
    "style": "normal"
    },
    {
    "color": "fast",
    "length": 619,
    "selection": "LINESTRING(37.584447 55.758512, 37.584395 55.758321, 37.584344 55.758079, 37.584186 55.757315, 37.584176 55.757269, 37.584125 55.757023, 37.584043 55.756629, 37.583822 55.755538, 37.583697 55.754923, 37.583668 55.754754, 37.583378 55.753109, 37.583351 55.752953)",
    "style": "normal"
    },
    {
    "color": "fast",
    "length": 102,
    "selection": "LINESTRING(37.583351 55.752953, 37.583190 55.752040)",
    "style": "tunnel"
    },
    {
    "color": "fast",
    "length": 911,
    "selection": "LINESTRING(37.583190 55.752040, 37.582935 55.750703, 37.582862 55.750274, 37.582690 55.749260, 37.582649 55.748991, 37.582642 55.748942, 37.582622 55.748800, 37.582594 55.748606, 37.582550 55.748275, 37.582542 55.748214, 37.582511 55.747985, 37.582505 55.747941, 37.582504 55.747935, 37.582466 55.747596, 37.582424 55.747235, 37.582416 55.747159, 37.582404 55.747011, 37.582412 55.746834, 37.582431 55.746766, 37.582452 55.746691, 37.582506 55.746541, 37.582703 55.746087, 37.582831 55.745789, 37.582982 55.745441, 37.583071 55.745234, 37.583448 55.744362, 37.583638 55.743918, 37.583658 55.743874)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, -1, 0, 0, 0, -1)",
    "color": "normal",
    "length": 507,
    "selection": "LINESTRING(37.583658 55.743874 16070, 37.583836 55.743413 16020, 37.584755 55.740962 15880, 37.584899 55.740612 15880, 37.584974 55.740442 15880, 37.584983 55.740421 15870, 37.585059 55.740260 15870, 37.585233 55.739936 15850, 37.585321 55.739771 15850, 37.585509 55.739421 15770)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(-1, 0, 0, 0, -1, 0, 0, 0, 0)",
    "color": "slow",
    "length": 115,
    "selection": "LINESTRING(37.585509 55.739421 15770, 37.585625 55.739204 15690, 37.585727 55.739026 15670, 37.585785 55.738935 15660, 37.585831 55.738862 15650, 37.585935 55.738740 15620, 37.585958 55.738712 15620, 37.586098 55.738602 15620, 37.586172 55.738556 15620, 37.586302 55.738476 15620)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0)",
    "color": "normal",
    "length": 271,
    "selection": "LINESTRING(37.586302 55.738476 15620, 37.586468 55.738385 15610, 37.586625 55.738309 15610, 37.586668 55.738287 15610, 37.586909 55.738185 15610, 37.587069 55.738121 15600, 37.589396 55.737195 15510, 37.589816 55.737029 15520)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, -1, 3)",
    "color": "slow",
    "length": 190,
    "selection": "LINESTRING(37.589816 55.737029 15520, 37.589948 55.736973 15530, 37.592338 55.736114 15230, 37.592369 55.736103 15250)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0)",
    "color": "normal",
    "length": 79,
    "selection": "LINESTRING(37.592369 55.736103 15250, 37.593290 55.735782 15210, 37.593451 55.735726 15200)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, -1, 0, 0, 0)",
    "color": "slow",
    "length": 169,
    "selection": "LINESTRING(37.593451 55.735726 15200, 37.593509 55.735705 15200, 37.594339 55.735426 14920, 37.594543 55.735361 14920, 37.594568 55.735353 14920, 37.595795 55.734960 14920)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0)",
    "color": "slow",
    "length": 573,
    "selection": "LINESTRING(37.595795 55.734960 14920, 37.597160 55.734524 14870, 37.597617 55.734377 14860, 37.599113 55.733898 14820, 37.600723 55.733383 14760, 37.600872 55.733335 14760, 37.603754 55.732413 14470)",
    "style": "bridge"
    },
    {
    "color": "slow",
    "length": 543,
    "selection": "LINESTRING(37.603754 55.732413, 37.603945 55.732352, 37.604248 55.732255, 37.604513 55.732170, 37.605023 55.732006, 37.605492 55.731856, 37.605757 55.731771, 37.606070 55.731671, 37.606790 55.731441, 37.607310 55.731274, 37.608387 55.730929, 37.610132 55.730370, 37.610566 55.730256, 37.610986 55.730149, 37.611402 55.730044)",
    "style": "normal"
    },
    {
    "color": "slow",
    "length": 203,
    "selection": "LINESTRING(37.611402 55.730044, 37.611871 55.729947, 37.612422 55.729834, 37.612955 55.729759, 37.613472 55.729709, 37.614037 55.729666, 37.614539 55.729642)",
    "style": "tunnel"
    },
    {
    "color": "slow",
    "length": 539,
    "selection": "LINESTRING(37.614539 55.729642, 37.614932 55.729631, 37.615526 55.729625, 37.616091 55.729630, 37.616365 55.729634, 37.617882 55.729655, 37.620322 55.729687, 37.623153 55.729726)",
    "style": "normal"
    },
    {
    "color": "slow",
    "length": 186,
    "selection": "LINESTRING(37.623153 55.729726, 37.623635 55.729736, 37.624086 55.729748, 37.624611 55.729767, 37.625130 55.729794, 37.625631 55.729825, 37.626116 55.729869)",
    "style": "tunnel"
    },
    {
    "color": "slow",
    "length": 161,
    "selection": "LINESTRING(37.626116 55.729869, 37.628643 55.730142)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, -1, 0, 0, -1, 1, 0, -3, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0)",
    "color": "normal",
    "length": 903,
    "selection": "LINESTRING(37.628643 55.730142 14960, 37.630578 55.730351 14910, 37.631492 55.730450 14890, 37.633208 55.730635 14790, 37.633927 55.730713 14740, 37.634070 55.730728 14720, 37.634816 55.730799 14670, 37.635597 55.730876 14600, 37.635976 55.730914 14550, 37.636256 55.730945 14580, 37.636723 55.730997 14580, 37.637016 55.731052 14390, 37.637097 55.731069 14380, 37.637354 55.731134 14400, 37.637670 55.731218 14410, 37.637912 55.731284 14410, 37.638163 55.731361 14420, 37.638304 55.731410 14390, 37.638529 55.731488 14370, 37.638592 55.731515 14360, 37.638799 55.731601 14360, 37.638996 55.731697 14350, 37.639193 55.731802 14310, 37.639393 55.731913 14280, 37.639745 55.732134 14270, 37.639929 55.732250 14280, 37.640032 55.732312 14260, 37.640235 55.732435 14270, 37.641072 55.732941 14360, 37.641218 55.733025 14360, 37.641561 55.733217 14360)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0)",
    "color": "fast",
    "length": 77,
    "selection": "LINESTRING(37.641561 55.733217 14360, 37.642330 55.733640 14380, 37.642444 55.733704 14390)",
    "style": "bridge"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0)",
    "color": "fast",
    "length": 138,
    "selection": "LINESTRING(37.642444 55.733704 14390, 37.642894 55.733944 14360, 37.643430 55.734229 14350, 37.643845 55.734449 14340, 37.644034 55.734579 14330)",
    "style": "normal"
    },
    {
    "color": "fast",
    "length": 591,
    "selection": "LINESTRING(37.644034 55.734579, 37.645589 55.735650, 37.647026 55.736642, 37.648863 55.737908, 37.649803 55.738554, 37.650012 55.738698)",
    "style": "bridge"
    }
    ],
    "names": ["Большая Садовая"]
    },
    "outcoming_path_comment": "8.2 км прямо",
    "turn_angle": 83,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Держитесь левее на ул. Нижняя Краснохолмская",
    "icon": "crossroad_keep_left",
    "id": "18123844469242584388",
    "outcoming_path": {
    "distance": 3010,
    "duration": 315,
    "geometry": [
    {
    "color": "fast",
    "length": 212,
    "selection": "LINESTRING(37.650012 55.738698, 37.650378 55.738951, 37.650907 55.739316, 37.652159 55.740178)",
    "style": "normal"
    },
    {
    "color": "fast",
    "length": 322,
    "selection": "LINESTRING(37.652159 55.740178, 37.652727 55.740543, 37.653191 55.740889, 37.653580 55.741214, 37.653922 55.741543, 37.654206 55.741876, 37.654503 55.742282, 37.654716 55.742661)",
    "style": "tunnel"
    },
    {
    "color": "fast",
    "length": 187,
    "selection": "LINESTRING(37.654716 55.742661, 37.654962 55.743244, 37.655088 55.743664, 37.655122 55.743776, 37.655229 55.744322)",
    "style": "normal"
    },
    {
    "color": "normal",
    "length": 125,
    "selection": "LINESTRING(37.655229 55.744322, 37.655236 55.744357, 37.655385 55.745443)",
    "style": "normal"
    },
    {
    "color": "fast",
    "length": 225,
    "selection": "LINESTRING(37.655385 55.745443, 37.655661 55.747466)",
    "style": "bridge"
    },
    {
    "color": "fast",
    "length": 266,
    "selection": "LINESTRING(37.655661 55.747466, 37.655787 55.748389, 37.655859 55.748912, 37.655882 55.749084, 37.655890 55.749148, 37.655916 55.749428, 37.655928 55.749578, 37.655954 55.749874)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(-1, 2, 0)",
    "color": "fast",
    "length": 73,
    "selection": "LINESTRING(37.655954 55.749874 14640, 37.655958 55.749916 14630, 37.656003 55.750343 14940, 37.656020 55.750534 14940)",
    "style": "bridge"
    },
    {
    "angles": "LINESTRING(0, 2, 2, 3, 2, 2, 2, 2, 0, 1, 1, -1, 1)",
    "color": "fast",
    "length": 518,
    "selection": "LINESTRING(37.656020 55.750534 14940, 37.656044 55.750786 14950, 37.656066 55.751029 15110, 37.656143 55.751841 15550, 37.656172 55.752149 15840, 37.656191 55.752283 15910, 37.656227 55.752446 16000, 37.656264 55.752566 16080, 37.656357 55.752792 16240, 37.656503 55.753147 16270, 37.657051 55.754483 16580, 37.657073 55.754537 16600, 37.657178 55.754790 16550, 37.657298 55.755135 16640)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, -1, 0)",
    "color": "fast",
    "length": 61,
    "selection": "LINESTRING(37.657298 55.755135 16640, 37.657338 55.755250 16650, 37.657407 55.755446 16600, 37.657476 55.755675 16560)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)",
    "color": "normal",
    "length": 299,
    "selection": "LINESTRING(37.657476 55.755675 16560, 37.657556 55.755950 16550, 37.657630 55.756237 16570, 37.657665 55.756405 16570, 37.657732 55.756732 16630, 37.657794 55.757123 16640, 37.657807 55.757199 16640, 37.657846 55.757608 16620, 37.657850 55.757653 16610, 37.657858 55.757946 16610, 37.657860 55.758086 16620, 37.657857 55.758364 16580)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(-1)",
    "color": "normal",
    "length": 11,
    "selection": "LINESTRING(37.657857 55.758364 16580, 37.657856 55.758469 16540)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, -1, -1)",
    "color": "fast",
    "length": 284,
    "selection": "LINESTRING(37.657856 55.758469 16540, 37.657852 55.758756 16580, 37.657850 55.758906 16580, 37.657844 55.759340 16560, 37.657844 55.759350 16560, 37.657761 55.760218 16540, 37.657743 55.760402 16510, 37.657728 55.760547 16500, 37.657685 55.761006 16410, 37.657677 55.761053 16400)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(2)",
    "color": "fast",
    "length": 12,
    "selection": "LINESTRING(37.657677 55.761053 16400, 37.657658 55.761167 16460)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0)",
    "color": "fast",
    "length": 182,
    "selection": "LINESTRING(37.657658 55.761167 16460, 37.657615 55.761429 16460, 37.657587 55.761595 16480, 37.657416 55.762042 16530, 37.657132 55.762782 16640)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0)",
    "color": "fast",
    "length": 44,
    "selection": "LINESTRING(37.657132 55.762782 16640, 37.656935 55.763169 16690)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 1, 0, 1, -1, 2)",
    "color": "fast",
    "length": 106,
    "selection": "LINESTRING(37.656935 55.763169 16690, 37.656820 55.763397 16710, 37.656715 55.763603 16740, 37.656690 55.763648 16750, 37.656650 55.763718 16760, 37.656574 55.763840 16790, 37.656513 55.763937 16750, 37.656416 55.764092 16870)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0)",
    "color": "fast",
    "length": 83,
    "selection": "LINESTRING(37.656416 55.764092 16870, 37.656235 55.764223 16880, 37.656076 55.764339 16900, 37.655591 55.764691 16920)",
    "style": "normal"
    }
    ],
    "names": ["Нижняя Краснохолмская"]
    },
    "outcoming_path_comment": "3 км прямо",
    "turn_angle": 0,
    "turn_direction": "keep_left",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо",
    "icon": "crossroad_right",
    "id": "17768903151957973826",
    "outcoming_path": {
    "distance": 54,
    "duration": 42,
    "geometry": [
    {
    "angles": "LINESTRING(1, -6)",
    "color": "ignore",
    "length": 21,
    "selection": "LINESTRING(37.655591 55.764691 16920, 37.655782 55.764778 16950, 37.655865 55.764817 16820)",
    "style": "living_zone"
    },
    {
    "angles": "LINESTRING(3)",
    "color": "ignore",
    "length": 16,
    "selection": "LINESTRING(37.655865 55.764817 16820, 37.656064 55.764909 16960)",
    "style": "archway"
    },
    {
    "angles": "LINESTRING(0, -1)",
    "color": "ignore",
    "length": 17,
    "selection": "LINESTRING(37.656064 55.764909 16960, 37.656228 55.764957 16970, 37.656303 55.764992 16960)",
    "style": "living_zone"
    }
    ],
    "names": []
    },
    "outcoming_path_comment": "50 м прямо",
    "turn_angle": 89,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо",
    "icon": "crossroad_right",
    "id": "9029501492150993405",
    "outcoming_path": {
    "distance": 36,
    "duration": 11,
    "geometry": [
    {
    "angles": "LINESTRING(1, 0, 0, 0, 0)",
    "color": "ignore",
    "length": 36,
    "selection": "LINESTRING(37.656303 55.764992 16960, 37.656485 55.764865 17020, 37.656510 55.764857 17020, 37.656538 55.764857 17020, 37.656572 55.764863 17020, 37.656748 55.764924 17020)",
    "style": "living_zone"
    }
    ],
    "names": []
    },
    "outcoming_path_comment": "40 м прямо",
    "turn_angle": 88,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "finish",
    "icon": "finish",
    "id": "18249790006739505861",
    "outcoming_path_comment": "Вы на месте!",
    "type": "end"
    }
    ],
    "reliability": 1.0,
    "requested_filters": ["dirt_road", "toll_road"],
    "result_filters": ["dirt_road", "toll_road"],
    "route_id": "moscow-tr-back.m1/truckrouting/1752677494.573992",
    "total_distance": 12641,
    "total_duration": 2312,
    "type": "truckrouting",
    "ui_total_distance": {
    "unit": "км",
    "value": "13"
    },
    "ui_total_duration": "38 мин",
    "visited_pass_zone_ids": [3, 4],
    "waypoints": [
    {
    "original_point": {
    "lat": 55.77548696452943,
    "lon": 37.58308657528283
    },
    "projected_point": {
    "lat": 55.77548696452943,
    "lon": 37.58308657528283
    },
    "transit": false
    },
    {
    "original_point": {
    "lat": 55.76492488357115,
    "lon": 37.65674806925451
    },
    "projected_point": {
    "lat": 55.76492488357115,
    "lon": 37.65674806925451
    },
    "transit": false
    }
    ]
    },
    {
    "algorithm": "с учётом пробок",
    "altitudes_info": {
    "elevation_gain": 3980,
    "elevation_loss": 4350,
    "max_altitude": 17770,
    "max_road_angle": 4,
    "min_altitude": 16180
    },
    "are_truck_pass_zones_ignored": true,
    "begin_pedestrian_path": {
    "geometry": {
    "selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
    }
    },
    "end_pedestrian_path": {
    "geometry": {
    "selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
    }
    },
    "features": {
    "truck": "full"
    },
    "filter_road_types": ["highway"],
    "id": "1520893636166891910",
    "maneuvers": [
    {
    "comment": "start",
    "icon": "start",
    "id": "12827459735321200112",
    "outcoming_path": {
    "distance": 30,
    "duration": 8,
    "geometry": [
    {
    "angles": "LINESTRING(1, 0, 0, 0)",
    "color": "normal",
    "length": 30,
    "selection": "LINESTRING(37.583086 55.775486 17300, 37.583150 55.775405 17320, 37.583231 55.775307 17310, 37.583253 55.775281 17310, 37.583307 55.775231 17310)",
    "style": "normal"
    }
    ],
    "names": ["Тверская Застава площадь"]
    },
    "outcoming_path_comment": "30 м прямо",
    "type": "begin"
    },
    {
    "comment": "Поворот налево",
    "icon": "crossroad_left",
    "id": "16901192404869298425",
    "outcoming_path": {
    "distance": 164,
    "duration": 89,
    "geometry": [
    {
    "angles": "LINESTRING(0, 1, 0, 0, 1, 0)",
    "color": "slow",
    "length": 76,
    "selection": "LINESTRING(37.583307 55.775231 17310, 37.583561 55.775318 17320, 37.583628 55.775341 17330, 37.583734 55.775385 17330, 37.583827 55.775434 17340, 37.584035 55.775570 17380, 37.584217 55.775689 17390)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0)",
    "color": "normal",
    "length": 88,
    "selection": "LINESTRING(37.584217 55.775689 17390, 37.584347 55.775775 17400, 37.584624 55.775956 17440, 37.584979 55.776188 17450, 37.585058 55.776240 17450, 37.585154 55.776303 17450)",
    "style": "normal"
    }
    ],
    "names": []
    },
    "outcoming_path_comment": "150 м прямо",
    "turn_angle": -92,
    "turn_direction": "left",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо на ул. 1-я Тверская-Ямская",
    "icon": "crossroad_right",
    "id": "17559820447412689437",
    "outcoming_path": {
    "distance": 801,
    "duration": 162,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 0)",
    "color": "normal",
    "length": 491,
    "selection": "LINESTRING(37.585154 55.776303 17450, 37.585445 55.776157 17460, 37.585492 55.776131 17460, 37.585658 55.776039 17470, 37.586158 55.775747 17480, 37.588010 55.774663 17550, 37.588280 55.774505 17560, 37.590369 55.773281 17660, 37.590635 55.773126 17660)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0)",
    "color": "fast",
    "length": 152,
    "selection": "LINESTRING(37.590635 55.773126 17660, 37.592026 55.772311 17720, 37.592333 55.772132 17710)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0)",
    "color": "normal",
    "length": 158,
    "selection": "LINESTRING(37.592333 55.772132 17710, 37.594081 55.771108 17680)",
    "style": "normal"
    }
    ],
    "names": ["1-я Тверская-Ямская"]
    },
    "outcoming_path_comment": "800 м прямо",
    "turn_angle": 91,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо на ул. Гашека",
    "icon": "crossroad_right",
    "id": "1952558605904952078",
    "outcoming_path": {
    "distance": 168,
    "duration": 63,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, -1, 0, -2, -1, 1)",
    "color": "normal",
    "length": 168,
    "selection": "LINESTRING(37.594081 55.771108 17680, 37.593964 55.771045 17680, 37.593877 55.770999 17690, 37.593641 55.770872 17670, 37.593176 55.770623 17580, 37.593065 55.770563 17570, 37.592993 55.770525 17540, 37.592199 55.770099 17400, 37.592101 55.770047 17420)",
    "style": "normal"
    }
    ],
    "names": ["Гашека"]
    },
    "outcoming_path_comment": "150 м прямо",
    "turn_angle": 90,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Поворот налево на ул. 2-я Брестская",
    "icon": "crossroad_left",
    "id": "10365482744237734294",
    "outcoming_path": {
    "distance": 206,
    "duration": 79,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 4, 0, 0, 1, -1, 1, 2)",
    "color": "normal",
    "length": 206,
    "selection": "LINESTRING(37.592101 55.770047 17420, 37.592212 55.769983 17420, 37.592449 55.769843 17420, 37.592770 55.769654 17430, 37.593209 55.769397 17450, 37.593661 55.769131 17460, 37.593700 55.769108 17500, 37.593817 55.769040 17490, 37.593994 55.768937 17470, 37.594028 55.768916 17480, 37.594239 55.768793 17420, 37.594289 55.768763 17440, 37.594431 55.768680 17500)",
    "style": "normal"
    }
    ],
    "names": ["2-я Брестская"]
    },
    "outcoming_path_comment": "200 м прямо",
    "turn_angle": -90,
    "turn_direction": "left",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо на ул. Большая Садовая",
    "icon": "crossroad_right",
    "id": "12086216599356532607",
    "outcoming_path": {
    "distance": 1626,
    "duration": 327,
    "geometry": [
    {
    "angles": "LINESTRING(-1, 0, -1, 0)",
    "color": "normal",
    "length": 170,
    "selection": "LINESTRING(37.594431 55.768680 17500, 37.594346 55.768628 17480, 37.593543 55.768059 17420, 37.593308 55.767862 17340, 37.592814 55.767453 17310)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)",
    "color": "slow",
    "length": 845,
    "selection": "LINESTRING(37.592814 55.767453 17310, 37.592717 55.767386 17310, 37.592365 55.767140 17310, 37.591674 55.766659 17320, 37.591448 55.766501 17310, 37.591024 55.766200 17310, 37.590734 55.765995 17300, 37.590646 55.765932 17300, 37.590323 55.765704 17300, 37.590212 55.765625 17300, 37.589852 55.765370 17290, 37.589556 55.765142 17280, 37.589238 55.764885 17260, 37.588929 55.764616 17240, 37.588592 55.764313 17230, 37.588277 55.764015 17220, 37.588007 55.763744 17210, 37.587735 55.763438 17200, 37.587531 55.763196 17200, 37.587417 55.763061 17200, 37.587347 55.762978 17200, 37.586968 55.762487 17190, 37.586911 55.762414 17180, 37.586792 55.762252 17180, 37.586305 55.761590 17180, 37.586265 55.761535 17180, 37.585827 55.760940 17120)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 1, 0, -3)",
    "color": "normal",
    "length": 204,
    "selection": "LINESTRING(37.585827 55.760940 17120, 37.585436 55.760408 17110, 37.585400 55.760360 17110, 37.585361 55.760297 17110, 37.585229 55.760091 17110, 37.584994 55.759724 17090, 37.584986 55.759712 17090, 37.584873 55.759517 17060, 37.584848 55.759474 17070, 37.584719 55.759224 17080, 37.584702 55.759192 17050)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 1)",
    "color": "normal",
    "length": 41,
    "selection": "LINESTRING(37.584702 55.759192 17050, 37.584583 55.758920 17050, 37.584552 55.758831 17080)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0)",
    "color": "normal",
    "length": 35,
    "selection": "LINESTRING(37.584552 55.758831 17080, 37.584540 55.758798 17080, 37.584481 55.758631 17060, 37.584447 55.758512 17050)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, -1, 0, -1, -1, 1, 0)",
    "color": "fast",
    "length": 331,
    "selection": "LINESTRING(37.584447 55.758512 17050, 37.584395 55.758321 17030, 37.584344 55.758079 16970, 37.584186 55.757315 16960, 37.584176 55.757269 16940, 37.584125 55.757023 16850, 37.584043 55.756629 16940, 37.583822 55.755538 16820)",
    "style": "normal"
    }
    ],
    "names": ["Большая Садовая"]
    },
    "outcoming_path_comment": "1.6 км прямо",
    "turn_angle": 83,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Держитесь правее на ул. Новинский бульвар",
    "icon": "crossroad_keep_right",
    "id": "3842867989179417812",
    "outcoming_path": {
    "distance": 287,
    "duration": 51,
    "geometry": [
    {
    "angles": "LINESTRING(-2, 0, 0, 0, 0, 0, -3, 0, -1, 0)",
    "color": "fast",
    "length": 287,
    "selection": "LINESTRING(37.583822 55.755538 16820, 37.583700 55.755320 16700, 37.583677 55.755270 16700, 37.583651 55.755185 16690, 37.583580 55.754874 16680, 37.583460 55.754497 16620, 37.583368 55.754261 16590, 37.583347 55.754147 16480, 37.583324 55.754018 16490, 37.583209 55.753360 16290, 37.583139 55.752970 16240)",
    "style": "normal"
    }
    ],
    "names": ["Новинский бульвар"]
    },
    "outcoming_path_comment": "300 м прямо",
    "turn_angle": 10,
    "turn_direction": "keep_right",
    "type": "crossroad"
    },
    {
    "comment": "Разворот на ул. Новинский бульвар",
    "icon": "turn_over_right_hand",
    "id": "16515311044817105663",
    "outcoming_path": {
    "distance": 91,
    "duration": 73,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 0, 1, 1, -1, -1, 0, 0, 0, 0)",
    "color": "fast",
    "length": 91,
    "selection": "LINESTRING(37.583139 55.752970 16240, 37.583154 55.752938 16240, 37.583184 55.752911 16240, 37.583221 55.752892 16240, 37.583281 55.752879 16250, 37.583339 55.752872 16260, 37.583584 55.752866 16190, 37.583623 55.752870 16180, 37.583655 55.752880 16180, 37.583683 55.752898 16180, 37.583702 55.752933 16180, 37.583775 55.753348 16220)",
    "style": "normal"
    }
    ],
    "names": ["Новинский бульвар"]
    },
    "outcoming_path_comment": "90 м прямо",
    "turn_angle": -180,
    "turn_direction": "uturn_left",
    "type": "crossroad"
    },
    {
    "comment": "Держитесь левее на ул. Новинский бульвар",
    "icon": "crossroad_keep_left",
    "id": "18335272820349928622",
    "outcoming_path": {
    "distance": 6155,
    "duration": 1433,
    "geometry": [
    {
    "angles": "LINESTRING(0, 0, 1, 1, 1, 0, 0, 3, -1, 0, 1, 0, 0, 0, 2, -1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)",
    "color": "fast",
    "length": 1467,
    "selection": "LINESTRING(37.583775 55.753348 16220, 37.584019 55.754613 16280, 37.584049 55.754877 16320, 37.584040 55.754980 16340, 37.584014 55.755103 16370, 37.583987 55.755277 16440, 37.583989 55.755285 16440, 37.584368 55.757099 16680, 37.584373 55.757134 16720, 37.584393 55.757231 16690, 37.584599 55.758224 16720, 37.584616 55.758305 16760, 37.584701 55.758610 16790, 37.584799 55.758885 16790, 37.584902 55.759123 16820, 37.584918 55.759161 16850, 37.584980 55.759280 16810, 37.585062 55.759437 16850, 37.585108 55.759517 16850, 37.585197 55.759670 16840, 37.585321 55.759863 16890, 37.585480 55.760112 16940, 37.585610 55.760316 17040, 37.585641 55.760359 17050, 37.585860 55.760655 17090, 37.586396 55.761385 17100, 37.586592 55.761651 17100, 37.586717 55.761822 17110, 37.586860 55.762016 17130, 37.587004 55.762212 17130, 37.587116 55.762364 17130, 37.587445 55.762789 17160, 37.587551 55.762927 17170, 37.587782 55.763201 17180, 37.587849 55.763280 17180, 37.587936 55.763384 17180, 37.588134 55.763606 17180, 37.588203 55.763684 17180, 37.588416 55.763898 17190, 37.588471 55.763953 17190, 37.588784 55.764248 17200, 37.588984 55.764428 17200, 37.589118 55.764549 17200, 37.589422 55.764814 17210, 37.589738 55.765068 17210, 37.590030 55.765294 17220, 37.590045 55.765304 17220, 37.590722 55.765784 17260)",
    "style": "normal"
    },
    {
    "color": "normal",
    "length": 462,
    "selection": "LINESTRING(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": "normal",
    "length": 81,
    "selection": "LINESTRING(37.595486 55.769004, 37.596007 55.769269, 37.596454 55.769495)",
    "style": "tunnel"
    },
    {
    "color": "fast",
    "length": 115,
    "selection": "LINESTRING(37.596454 55.769495, 37.596797 55.769669, 37.597193 55.769869, 37.597838 55.770195)",
    "style": "tunnel"
    },
    {
    "color": "normal",
    "length": 1053,
    "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.609050 55.773088, 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": "fast",
    "length": 244,
    "selection": "LINESTRING(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": 447,
    "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)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 1, -1, 1, 0, 0, 0, 0)",
    "color": "normal",
    "length": 222,
    "selection": "LINESTRING(37.630300 55.772978 17510, 37.630537 55.772946 17520, 37.631810 55.772768 17660, 37.631859 55.772761 17650, 37.632283 55.772702 17720, 37.632528 55.772668 17720, 37.633038 55.772597 17720, 37.633286 55.772569 17720, 37.633809 55.772511 17720)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0)",
    "color": "slow",
    "length": 231,
    "selection": "LINESTRING(37.633809 55.772511 17720, 37.635934 55.772276 17720, 37.636482 55.772197 17730, 37.636863 55.772130 17760, 37.637246 55.772053 17750, 37.637383 55.772024 17750)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 0, 0, 0, -1, 0, -2, -1)",
    "color": "slow-jams",
    "length": 412,
    "selection": "LINESTRING(37.637383 55.772024 17750, 37.637746 55.771946 17740, 37.638398 55.771787 17710, 37.638671 55.771709 17700, 37.639223 55.771539 17670, 37.639458 55.771467 17650, 37.640138 55.771258 17610, 37.641596 55.770815 17350, 37.642386 55.770573 17350, 37.642720 55.770474 17200, 37.643276 55.770304 17130)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(-1, 1)",
    "color": "slow",
    "length": 30,
    "selection": "LINESTRING(37.643276 55.770304 17130, 37.643525 55.770234 17100, 37.643708 55.770178 17140)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(-1, 0, 0, 0, 1, 0)",
    "color": "normal",
    "length": 170,
    "selection": "LINESTRING(37.643708 55.770178 17140, 37.643975 55.770092 17100, 37.644348 55.769976 17070, 37.644647 55.769882 17070, 37.645657 55.769580 17070, 37.645818 55.769531 17090, 37.646121 55.769442 17120)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0, 0, 0, 2, 0, 1, -4, -4, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0)",
    "color": "fast",
    "length": 758,
    "selection": "LINESTRING(37.646121 55.769442 17120, 37.646389 55.769364 17130, 37.647223 55.769158 17160, 37.647789 55.769017 17200, 37.648564 55.768776 17500, 37.649337 55.768557 17550, 37.649691 55.768459 17600, 37.649817 55.768424 17490, 37.649886 55.768391 17420, 37.650113 55.768283 17440, 37.650280 55.768171 17460, 37.651022 55.767635 17500, 37.651497 55.767307 17470, 37.651966 55.766988 17420, 37.652654 55.766522 17330, 37.653423 55.765990 17270, 37.653591 55.765874 17250, 37.653911 55.765652 17200, 37.654967 55.764923 17070)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0)",
    "color": "normal",
    "length": 64,
    "selection": "LINESTRING(37.654967 55.764923 17070, 37.655597 55.764466 16990)",
    "style": "normal"
    },
    {
    "angles": "LINESTRING(0)",
    "color": "fast",
    "length": 29,
    "selection": "LINESTRING(37.655597 55.764466 16990, 37.655881 55.764258 16960)",
    "style": "normal"
    }
    ],
    "names": ["Новинский бульвар"]
    },
    "outcoming_path_comment": "6.2 км прямо",
    "turn_angle": 0,
    "turn_direction": "keep_left",
    "type": "crossroad"
    },
    {
    "comment": "Разворот на ул. Садовая-Черногрязская",
    "icon": "turn_over_right_hand",
    "id": "13179743590922895675",
    "outcoming_path": {
    "distance": 71,
    "duration": 71,
    "geometry": [
    {
    "angles": "LINESTRING(-1, 0, -1, -1, 0, -2, -1, 0, -1, 0, 0)",
    "color": "fast",
    "length": 71,
    "selection": "LINESTRING(37.655881 55.764258 16960, 37.655917 55.764246 16950, 37.655955 55.764239 16950, 37.655993 55.764237 16940, 37.656027 55.764240 16930, 37.656049 55.764245 16930, 37.656067 55.764253 16920, 37.656086 55.764271 16910, 37.656095 55.764288 16910, 37.656094 55.764310 16900, 37.656076 55.764339 16900, 37.655591 55.764691 16920)",
    "style": "normal"
    }
    ],
    "names": ["Садовая-Черногрязская"]
    },
    "outcoming_path_comment": "70 м прямо",
    "turn_angle": -180,
    "turn_direction": "uturn_left",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо",
    "icon": "crossroad_right",
    "id": "70687263726183417",
    "outcoming_path": {
    "distance": 54,
    "duration": 39,
    "geometry": [
    {
    "angles": "LINESTRING(1, -6)",
    "color": "ignore",
    "length": 21,
    "selection": "LINESTRING(37.655591 55.764691 16920, 37.655782 55.764778 16950, 37.655865 55.764817 16820)",
    "style": "living_zone"
    },
    {
    "angles": "LINESTRING(3)",
    "color": "ignore",
    "length": 16,
    "selection": "LINESTRING(37.655865 55.764817 16820, 37.656064 55.764909 16960)",
    "style": "archway"
    },
    {
    "angles": "LINESTRING(0, -1)",
    "color": "ignore",
    "length": 17,
    "selection": "LINESTRING(37.656064 55.764909 16960, 37.656228 55.764957 16970, 37.656303 55.764992 16960)",
    "style": "living_zone"
    }
    ],
    "names": []
    },
    "outcoming_path_comment": "50 м прямо",
    "turn_angle": 89,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "Поворот направо",
    "icon": "crossroad_right",
    "id": "11679983166425879419",
    "outcoming_path": {
    "distance": 36,
    "duration": 10,
    "geometry": [
    {
    "angles": "LINESTRING(1, 0, 0, 0, 0)",
    "color": "ignore",
    "length": 36,
    "selection": "LINESTRING(37.656303 55.764992 16960, 37.656485 55.764865 17020, 37.656510 55.764857 17020, 37.656538 55.764857 17020, 37.656572 55.764863 17020, 37.656748 55.764924 17020)",
    "style": "living_zone"
    }
    ],
    "names": []
    },
    "outcoming_path_comment": "40 м прямо",
    "turn_angle": 88,
    "turn_direction": "right",
    "type": "crossroad"
    },
    {
    "comment": "finish",
    "icon": "finish",
    "id": "18249790006739505861",
    "outcoming_path_comment": "Вы на месте!",
    "type": "end"
    }
    ],
    "reliability": 1.0,
    "requested_filters": ["dirt_road", "toll_road"],
    "result_filters": ["dirt_road", "toll_road"],
    "route_id": "moscow-tr-back.m1/truckrouting/1752677494.584405",
    "total_distance": 9689,
    "total_duration": 2406,
    "type": "truckrouting",
    "ui_total_distance": {
    "unit": "км",
    "value": "9.7"
    },
    "ui_total_duration": "40 мин",
    "visited_pass_zone_ids": [3, 4],
    "waypoints": [
    {
    "original_point": {
    "lat": 55.77548696452943,
    "lon": 37.58308657528283
    },
    "projected_point": {
    "lat": 55.77548696452943,
    "lon": 37.58308657528283
    },
    "transit": false
    },
    {
    "original_point": {
    "lat": 55.76492488357115,
    "lon": 37.65674806925451
    },
    "projected_point": {
    "lat": 55.76492488357115,
    "lon": 37.65674806925451
    },
    "transit": false
    }
    ]
    }
    ],
    "status": "OK",
    "type": "result"
    }

Не нужен пропуск

Чтобы построить маршрут для грузового транспорта, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две).

  • transport: truck — способ передвижения: на грузовом транспорте.

  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • params — дополнительные параметры:

    • truck — параметры грузового транспорта:

      • max_perm_mass — разрешённая максимальная масса (тонны);
      • mass — фактическая масса (тонны);
      • axle_load — нагрузка на ось (тонны);
      • height — высота (метры);
      • width — ширины (метры);
      • length — длина (метры);
      • dangerous_cargo — опасный груз;
      • explosive_cargo — взрывчатый груз.
  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • toll_road — платные дороги;
    • ferry — переправы.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

  • need_altitudes: true — информация о высотах на маршруте.

Пример запроса:

curl --location --request POST 'http://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": "truck",
"output": "detailed",
"params": {
"truck": {
"max_perm_mass": 5,
"mass": 4,
"axle_load": 1.5,
"height": 2.57,
"width": 2.5,
"length": 5.44,
"dangerous_cargo": true,
"explosive_cargo": true
}
},
"filters": [
"dirt_road",
"toll_road"
],
"locale": "ru",
"need_altitudes": true
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["dirt_road", "toll_road"],
"locale": "ru",
"need_altitudes": true,
"output": "detailed",
"params": {
"truck": {
"axle_load": 1.5,
"dangerous_cargo": true,
"explosive_cargo": true,
"height": 2.57,
"length": 5.44,
"mass": 4,
"max_perm_mass": 5,
"width": 2.5
}
},
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
],
"transport": "truck"
},
"result": [
{
"algorithm": "с учётом пробок",
"altitudes_info": {
"elevation_gain": 3980,
"elevation_loss": 4350,
"max_altitude": 17770,
"max_road_angle": 4,
"min_altitude": 16180
},
"are_truck_pass_zones_ignored": true,
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"features": {
"truck": "full"
},
"filter_road_types": ["highway"],
"id": "9368502606655464393",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "10365047350578569180",
"outcoming_path": {
"distance": 30,
"duration": 10,
"geometry": [
{
"angles": "LINESTRING(1, 0, 0, 0)",
"color": "normal",
"length": 30,
"selection": "LINESTRING(37.583086 55.775486 17300, 37.583150 55.775405 17320, 37.583231 55.775307 17310, 37.583253 55.775281 17310, 37.583307 55.775231 17310)",
"style": "normal"
}
],
"names": ["Тверская Застава площадь"]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "16903832368337366821",
"outcoming_path": {
"distance": 164,
"duration": 89,
"geometry": [
{
"angles": "LINESTRING(0, 1, 0, 0, 1, 0)",
"color": "slow",
"length": 76,
"selection": "LINESTRING(37.583307 55.775231 17310, 37.583561 55.775318 17320, 37.583628 55.775341 17330, 37.583734 55.775385 17330, 37.583827 55.775434 17340, 37.584035 55.775570 17380, 37.584217 55.775689 17390)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0)",
"color": "normal",
"length": 88,
"selection": "LINESTRING(37.584217 55.775689 17390, 37.584347 55.775775 17400, 37.584624 55.775956 17440, 37.584979 55.776188 17450, 37.585058 55.776240 17450, 37.585154 55.776303 17450)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -92,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. 1-я Тверская-Ямская",
"icon": "crossroad_right",
"id": "5729127111308034847",
"outcoming_path": {
"distance": 801,
"duration": 156,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0)",
"color": "normal",
"length": 254,
"selection": "LINESTRING(37.585154 55.776303 17450, 37.585445 55.776157 17460, 37.585492 55.776131 17460, 37.585658 55.776039 17470, 37.586158 55.775747 17480, 37.588010 55.774663 17550)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "fast",
"length": 24,
"selection": "LINESTRING(37.588010 55.774663 17550, 37.588280 55.774505 17560)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0)",
"color": "normal",
"length": 213,
"selection": "LINESTRING(37.588280 55.774505 17560, 37.590369 55.773281 17660, 37.590635 55.773126 17660)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0)",
"color": "fast",
"length": 310,
"selection": "LINESTRING(37.590635 55.773126 17660, 37.592026 55.772311 17720, 37.592333 55.772132 17710, 37.594081 55.771108 17680)",
"style": "normal"
}
],
"names": ["1-я Тверская-Ямская"]
},
"outcoming_path_comment": "800 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Гашека",
"icon": "crossroad_right",
"id": "3747746269955818155",
"outcoming_path": {
"distance": 168,
"duration": 66,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, -1, 0, -2, -1, 1)",
"color": "normal",
"length": 168,
"selection": "LINESTRING(37.594081 55.771108 17680, 37.593964 55.771045 17680, 37.593877 55.770999 17690, 37.593641 55.770872 17670, 37.593176 55.770623 17580, 37.593065 55.770563 17570, 37.592993 55.770525 17540, 37.592199 55.770099 17400, 37.592101 55.770047 17420)",
"style": "normal"
}
],
"names": ["Гашека"]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. 2-я Брестская",
"icon": "crossroad_left",
"id": "10010792478049231145",
"outcoming_path": {
"distance": 206,
"duration": 83,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 4, 0, 0, 1, -1, 1, 2)",
"color": "normal",
"length": 206,
"selection": "LINESTRING(37.592101 55.770047 17420, 37.592212 55.769983 17420, 37.592449 55.769843 17420, 37.592770 55.769654 17430, 37.593209 55.769397 17450, 37.593661 55.769131 17460, 37.593700 55.769108 17500, 37.593817 55.769040 17490, 37.593994 55.768937 17470, 37.594028 55.768916 17480, 37.594239 55.768793 17420, 37.594289 55.768763 17440, 37.594431 55.768680 17500)",
"style": "normal"
}
],
"names": ["2-я Брестская"]
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Большая Садовая",
"icon": "crossroad_right",
"id": "14443240030006976782",
"outcoming_path": {
"distance": 1626,
"duration": 324,
"geometry": [
{
"angles": "LINESTRING(-1, 0, -1, 0)",
"color": "normal",
"length": 170,
"selection": "LINESTRING(37.594431 55.768680 17500, 37.594346 55.768628 17480, 37.593543 55.768059 17420, 37.593308 55.767862 17340, 37.592814 55.767453 17310)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -3)",
"color": "slow",
"length": 1049,
"selection": "LINESTRING(37.592814 55.767453 17310, 37.592717 55.767386 17310, 37.592365 55.767140 17310, 37.591674 55.766659 17320, 37.591448 55.766501 17310, 37.591024 55.766200 17310, 37.590734 55.765995 17300, 37.590646 55.765932 17300, 37.590323 55.765704 17300, 37.590212 55.765625 17300, 37.589852 55.765370 17290, 37.589556 55.765142 17280, 37.589238 55.764885 17260, 37.588929 55.764616 17240, 37.588592 55.764313 17230, 37.588277 55.764015 17220, 37.588007 55.763744 17210, 37.587735 55.763438 17200, 37.587531 55.763196 17200, 37.587417 55.763061 17200, 37.587347 55.762978 17200, 37.586968 55.762487 17190, 37.586911 55.762414 17180, 37.586792 55.762252 17180, 37.586305 55.761590 17180, 37.586265 55.761535 17180, 37.585827 55.760940 17120, 37.585436 55.760408 17110, 37.585400 55.760360 17110, 37.585361 55.760297 17110, 37.585229 55.760091 17110, 37.584994 55.759724 17090, 37.584986 55.759712 17090, 37.584873 55.759517 17060, 37.584848 55.759474 17070, 37.584719 55.759224 17080, 37.584702 55.759192 17050)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 1)",
"color": "normal",
"length": 41,
"selection": "LINESTRING(37.584702 55.759192 17050, 37.584583 55.758920 17050, 37.584552 55.758831 17080)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, -1, 0, -1)",
"color": "normal",
"length": 173,
"selection": "LINESTRING(37.584552 55.758831 17080, 37.584540 55.758798 17080, 37.584481 55.758631 17060, 37.584447 55.758512 17050, 37.584395 55.758321 17030, 37.584344 55.758079 16970, 37.584186 55.757315 16960, 37.584176 55.757269 16940)",
"style": "normal"
},
{
"angles": "LINESTRING(-1, 1, 0)",
"color": "fast",
"length": 193,
"selection": "LINESTRING(37.584176 55.757269 16940, 37.584125 55.757023 16850, 37.584043 55.756629 16940, 37.583822 55.755538 16820)",
"style": "normal"
}
],
"names": ["Большая Садовая"]
},
"outcoming_path_comment": "1.6 км прямо",
"turn_angle": 83,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Держитесь правее на ул. Новинский бульвар",
"icon": "crossroad_keep_right",
"id": "2873990236231225306",
"outcoming_path": {
"distance": 287,
"duration": 47,
"geometry": [
{
"angles": "LINESTRING(-2, 0, 0, 0, 0, 0, -3, 0, -1)",
"color": "fast",
"length": 244,
"selection": "LINESTRING(37.583822 55.755538 16820, 37.583700 55.755320 16700, 37.583677 55.755270 16700, 37.583651 55.755185 16690, 37.583580 55.754874 16680, 37.583460 55.754497 16620, 37.583368 55.754261 16590, 37.583347 55.754147 16480, 37.583324 55.754018 16490, 37.583209 55.753360 16290)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "normal",
"length": 43,
"selection": "LINESTRING(37.583209 55.753360 16290, 37.583139 55.752970 16240)",
"style": "normal"
}
],
"names": ["Новинский бульвар"]
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 10,
"turn_direction": "keep_right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Новинский бульвар",
"icon": "turn_over_right_hand",
"id": "12551871313703745800",
"outcoming_path": {
"distance": 91,
"duration": 73,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 1, 1, -1, -1, 0, 0, 0, 0)",
"color": "fast",
"length": 91,
"selection": "LINESTRING(37.583139 55.752970 16240, 37.583154 55.752938 16240, 37.583184 55.752911 16240, 37.583221 55.752892 16240, 37.583281 55.752879 16250, 37.583339 55.752872 16260, 37.583584 55.752866 16190, 37.583623 55.752870 16180, 37.583655 55.752880 16180, 37.583683 55.752898 16180, 37.583702 55.752933 16180, 37.583775 55.753348 16220)",
"style": "normal"
}
],
"names": ["Новинский бульвар"]
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Держитесь левее на ул. Новинский бульвар",
"icon": "crossroad_keep_left",
"id": "8738875619870081412",
"outcoming_path": {
"distance": 6155,
"duration": 1133,
"geometry": [
{
"angles": "LINESTRING(0, 0, 1, 1, 1, 0, 0, 3, -1, 0, 1, 0, 0, 0, 2, -1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)",
"color": "fast",
"length": 1467,
"selection": "LINESTRING(37.583775 55.753348 16220, 37.584019 55.754613 16280, 37.584049 55.754877 16320, 37.584040 55.754980 16340, 37.584014 55.755103 16370, 37.583987 55.755277 16440, 37.583989 55.755285 16440, 37.584368 55.757099 16680, 37.584373 55.757134 16720, 37.584393 55.757231 16690, 37.584599 55.758224 16720, 37.584616 55.758305 16760, 37.584701 55.758610 16790, 37.584799 55.758885 16790, 37.584902 55.759123 16820, 37.584918 55.759161 16850, 37.584980 55.759280 16810, 37.585062 55.759437 16850, 37.585108 55.759517 16850, 37.585197 55.759670 16840, 37.585321 55.759863 16890, 37.585480 55.760112 16940, 37.585610 55.760316 17040, 37.585641 55.760359 17050, 37.585860 55.760655 17090, 37.586396 55.761385 17100, 37.586592 55.761651 17100, 37.586717 55.761822 17110, 37.586860 55.762016 17130, 37.587004 55.762212 17130, 37.587116 55.762364 17130, 37.587445 55.762789 17160, 37.587551 55.762927 17170, 37.587782 55.763201 17180, 37.587849 55.763280 17180, 37.587936 55.763384 17180, 37.588134 55.763606 17180, 37.588203 55.763684 17180, 37.588416 55.763898 17190, 37.588471 55.763953 17190, 37.588784 55.764248 17200, 37.588984 55.764428 17200, 37.589118 55.764549 17200, 37.589422 55.764814 17210, 37.589738 55.765068 17210, 37.590030 55.765294 17220, 37.590045 55.765304 17220, 37.590722 55.765784 17260)",
"style": "normal"
},
{
"color": "normal",
"length": 462,
"selection": "LINESTRING(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": "normal",
"length": 1297,
"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.609050 55.773088, 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"
},
{
"angles": "LINESTRING(1, 1, 1, 1, 1, 0, 1, -1, 1, 0, 0, 0, 0)",
"color": "normal",
"length": 419,
"selection": "LINESTRING(37.627213 55.773398 16960, 37.627407 55.773378 17000, 37.627898 55.773317 17130, 37.628220 55.773274 17180, 37.629057 55.773153 17300, 37.630300 55.772978 17510, 37.630537 55.772946 17520, 37.631810 55.772768 17660, 37.631859 55.772761 17650, 37.632283 55.772702 17720, 37.632528 55.772668 17720, 37.633038 55.772597 17720, 37.633286 55.772569 17720, 37.633809 55.772511 17720)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0)",
"color": "slow",
"length": 231,
"selection": "LINESTRING(37.633809 55.772511 17720, 37.635934 55.772276 17720, 37.636482 55.772197 17730, 37.636863 55.772130 17760, 37.637246 55.772053 17750, 37.637383 55.772024 17750)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 0, -1, 0, -2, -1, -1)",
"color": "slow-jams",
"length": 429,
"selection": "LINESTRING(37.637383 55.772024 17750, 37.637746 55.771946 17740, 37.638398 55.771787 17710, 37.638671 55.771709 17700, 37.639223 55.771539 17670, 37.639458 55.771467 17650, 37.640138 55.771258 17610, 37.641596 55.770815 17350, 37.642386 55.770573 17350, 37.642720 55.770474 17200, 37.643276 55.770304 17130, 37.643525 55.770234 17100)",
"style": "normal"
},
{
"angles": "LINESTRING(1, -1, 0)",
"color": "slow",
"length": 58,
"selection": "LINESTRING(37.643525 55.770234 17100, 37.643708 55.770178 17140, 37.643975 55.770092 17100, 37.644348 55.769976 17070)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 1)",
"color": "normal",
"length": 104,
"selection": "LINESTRING(37.644348 55.769976 17070, 37.644647 55.769882 17070, 37.645657 55.769580 17070, 37.645818 55.769531 17090)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 2, 0, 1, -4, -4, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0)",
"color": "fast",
"length": 872,
"selection": "LINESTRING(37.645818 55.769531 17090, 37.646121 55.769442 17120, 37.646389 55.769364 17130, 37.647223 55.769158 17160, 37.647789 55.769017 17200, 37.648564 55.768776 17500, 37.649337 55.768557 17550, 37.649691 55.768459 17600, 37.649817 55.768424 17490, 37.649886 55.768391 17420, 37.650113 55.768283 17440, 37.650280 55.768171 17460, 37.651022 55.767635 17500, 37.651497 55.767307 17470, 37.651966 55.766988 17420, 37.652654 55.766522 17330, 37.653423 55.765990 17270, 37.653591 55.765874 17250, 37.653911 55.765652 17200, 37.654967 55.764923 17070, 37.655597 55.764466 16990, 37.655881 55.764258 16960)",
"style": "normal"
}
],
"names": ["Новинский бульвар"]
},
"outcoming_path_comment": "6.2 км прямо",
"turn_angle": 0,
"turn_direction": "keep_left",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "17585988245305607381",
"outcoming_path": {
"distance": 71,
"duration": 70,
"geometry": [
{
"angles": "LINESTRING(-1, 0, -1, -1, 0, -2, -1, 0, -1, 0)",
"color": "fast",
"length": 22,
"selection": "LINESTRING(37.655881 55.764258 16960, 37.655917 55.764246 16950, 37.655955 55.764239 16950, 37.655993 55.764237 16940, 37.656027 55.764240 16930, 37.656049 55.764245 16930, 37.656067 55.764253 16920, 37.656086 55.764271 16910, 37.656095 55.764288 16910, 37.656094 55.764310 16900, 37.656076 55.764339 16900)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "normal",
"length": 49,
"selection": "LINESTRING(37.656076 55.764339 16900, 37.655591 55.764691 16920)",
"style": "normal"
}
],
"names": ["Садовая-Черногрязская"]
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "1789934572209820164",
"outcoming_path": {
"distance": 54,
"duration": 39,
"geometry": [
{
"angles": "LINESTRING(1, -6)",
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691 16920, 37.655782 55.764778 16950, 37.655865 55.764817 16820)",
"style": "living_zone"
},
{
"angles": "LINESTRING(3)",
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817 16820, 37.656064 55.764909 16960)",
"style": "archway"
},
{
"angles": "LINESTRING(0, -1)",
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909 16960, 37.656228 55.764957 16970, 37.656303 55.764992 16960)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "2548264943145592414",
"outcoming_path": {
"distance": 36,
"duration": 10,
"geometry": [
{
"angles": "LINESTRING(1, 0, 0, 0, 0)",
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992 16960, 37.656485 55.764865 17020, 37.656510 55.764857 17020, 37.656538 55.764857 17020, 37.656572 55.764863 17020, 37.656748 55.764924 17020)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 1.0,
"requested_filters": ["dirt_road", "toll_road"],
"result_filters": ["dirt_road", "toll_road"],
"route_id": "moscow-tr-back.m1/truckrouting/1752677589.317765",
"total_distance": 9689,
"total_duration": 2101,
"type": "truckrouting",
"ui_total_distance": {
"unit": "км",
"value": "9.7"
},
"ui_total_duration": "35 мин",
"visited_pass_zone_ids": [3, 4],
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"altitudes_info": {
"elevation_gain": 5390,
"elevation_loss": 6060,
"max_altitude": 17720,
"max_road_angle": 9,
"min_altitude": 14260
},
"are_truck_pass_zones_ignored": true,
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"features": {
"truck": "full"
},
"filter_road_types": ["highway"],
"id": "1490467387067777815",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "17855139341798938748",
"outcoming_path": {
"distance": 30,
"duration": 11,
"geometry": [
{
"angles": "LINESTRING(1, 0, 0, 0)",
"color": "normal",
"length": 30,
"selection": "LINESTRING(37.583086 55.775486 17300, 37.583150 55.775405 17320, 37.583231 55.775307 17310, 37.583253 55.775281 17310, 37.583307 55.775231 17310)",
"style": "normal"
}
],
"names": ["Тверская Застава площадь"]
},
"outcoming_path_comment": "30 м прямо",
"type": "begin"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "12982304755080256088",
"outcoming_path": {
"distance": 164,
"duration": 95,
"geometry": [
{
"angles": "LINESTRING(0, 1, 0, 0, 1, 0)",
"color": "slow",
"length": 76,
"selection": "LINESTRING(37.583307 55.775231 17310, 37.583561 55.775318 17320, 37.583628 55.775341 17330, 37.583734 55.775385 17330, 37.583827 55.775434 17340, 37.584035 55.775570 17380, 37.584217 55.775689 17390)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0)",
"color": "normal",
"length": 88,
"selection": "LINESTRING(37.584217 55.775689 17390, 37.584347 55.775775 17400, 37.584624 55.775956 17440, 37.584979 55.776188 17450, 37.585058 55.776240 17450, 37.585154 55.776303 17450)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -92,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. 1-я Тверская-Ямская",
"icon": "crossroad_right",
"id": "11559628487489845276",
"outcoming_path": {
"distance": 801,
"duration": 167,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0)",
"color": "normal",
"length": 254,
"selection": "LINESTRING(37.585154 55.776303 17450, 37.585445 55.776157 17460, 37.585492 55.776131 17460, 37.585658 55.776039 17470, 37.586158 55.775747 17480, 37.588010 55.774663 17550)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "fast",
"length": 24,
"selection": "LINESTRING(37.588010 55.774663 17550, 37.588280 55.774505 17560)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0)",
"color": "normal",
"length": 213,
"selection": "LINESTRING(37.588280 55.774505 17560, 37.590369 55.773281 17660, 37.590635 55.773126 17660)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0)",
"color": "fast",
"length": 310,
"selection": "LINESTRING(37.590635 55.773126 17660, 37.592026 55.772311 17720, 37.592333 55.772132 17710, 37.594081 55.771108 17680)",
"style": "normal"
}
],
"names": ["1-я Тверская-Ямская"]
},
"outcoming_path_comment": "800 м прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Гашека",
"icon": "crossroad_right",
"id": "17676913029239655447",
"outcoming_path": {
"distance": 168,
"duration": 70,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, -1, 0, -2, -1, 1)",
"color": "normal",
"length": 168,
"selection": "LINESTRING(37.594081 55.771108 17680, 37.593964 55.771045 17680, 37.593877 55.770999 17690, 37.593641 55.770872 17670, 37.593176 55.770623 17580, 37.593065 55.770563 17570, 37.592993 55.770525 17540, 37.592199 55.770099 17400, 37.592101 55.770047 17420)",
"style": "normal"
}
],
"names": ["Гашека"]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. 2-я Брестская",
"icon": "crossroad_left",
"id": "4656543015913892225",
"outcoming_path": {
"distance": 206,
"duration": 89,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 4, 0, 0, 1, -1, 1, 2)",
"color": "normal",
"length": 206,
"selection": "LINESTRING(37.592101 55.770047 17420, 37.592212 55.769983 17420, 37.592449 55.769843 17420, 37.592770 55.769654 17430, 37.593209 55.769397 17450, 37.593661 55.769131 17460, 37.593700 55.769108 17500, 37.593817 55.769040 17490, 37.593994 55.768937 17470, 37.594028 55.768916 17480, 37.594239 55.768793 17420, 37.594289 55.768763 17440, 37.594431 55.768680 17500)",
"style": "normal"
}
],
"names": ["2-я Брестская"]
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Большая Садовая",
"icon": "crossroad_right",
"id": "6111271922354371920",
"outcoming_path": {
"distance": 8172,
"duration": 1517,
"geometry": [
{
"angles": "LINESTRING(-1, 0, -1, 0)",
"color": "normal",
"length": 170,
"selection": "LINESTRING(37.594431 55.768680 17500, 37.594346 55.768628 17480, 37.593543 55.768059 17420, 37.593308 55.767862 17340, 37.592814 55.767453 17310)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -3)",
"color": "slow",
"length": 1049,
"selection": "LINESTRING(37.592814 55.767453 17310, 37.592717 55.767386 17310, 37.592365 55.767140 17310, 37.591674 55.766659 17320, 37.591448 55.766501 17310, 37.591024 55.766200 17310, 37.590734 55.765995 17300, 37.590646 55.765932 17300, 37.590323 55.765704 17300, 37.590212 55.765625 17300, 37.589852 55.765370 17290, 37.589556 55.765142 17280, 37.589238 55.764885 17260, 37.588929 55.764616 17240, 37.588592 55.764313 17230, 37.588277 55.764015 17220, 37.588007 55.763744 17210, 37.587735 55.763438 17200, 37.587531 55.763196 17200, 37.587417 55.763061 17200, 37.587347 55.762978 17200, 37.586968 55.762487 17190, 37.586911 55.762414 17180, 37.586792 55.762252 17180, 37.586305 55.761590 17180, 37.586265 55.761535 17180, 37.585827 55.760940 17120, 37.585436 55.760408 17110, 37.585400 55.760360 17110, 37.585361 55.760297 17110, 37.585229 55.760091 17110, 37.584994 55.759724 17090, 37.584986 55.759712 17090, 37.584873 55.759517 17060, 37.584848 55.759474 17070, 37.584719 55.759224 17080, 37.584702 55.759192 17050)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 1)",
"color": "normal",
"length": 41,
"selection": "LINESTRING(37.584702 55.759192 17050, 37.584583 55.758920 17050, 37.584552 55.758831 17080)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, -1, 0, -1)",
"color": "normal",
"length": 173,
"selection": "LINESTRING(37.584552 55.758831 17080, 37.584540 55.758798 17080, 37.584481 55.758631 17060, 37.584447 55.758512 17050, 37.584395 55.758321 17030, 37.584344 55.758079 16980, 37.584186 55.757315 16960, 37.584176 55.757269 16940)",
"style": "normal"
},
{
"color": "fast",
"length": 481,
"selection": "LINESTRING(37.584176 55.757269, 37.584125 55.757023, 37.584043 55.756629, 37.583822 55.755538, 37.583697 55.754923, 37.583668 55.754754, 37.583378 55.753109, 37.583351 55.752953)",
"style": "normal"
},
{
"color": "fast",
"length": 102,
"selection": "LINESTRING(37.583351 55.752953, 37.583190 55.752040)",
"style": "tunnel"
},
{
"color": "fast",
"length": 491,
"selection": "LINESTRING(37.583190 55.752040, 37.582935 55.750703, 37.582862 55.750274, 37.582690 55.749260, 37.582649 55.748991, 37.582642 55.748942, 37.582622 55.748800, 37.582594 55.748606, 37.582550 55.748275, 37.582542 55.748214, 37.582511 55.747985, 37.582505 55.747941, 37.582504 55.747935, 37.582466 55.747596)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "normal",
"length": 40,
"selection": "LINESTRING(37.582466 55.747596 15950, 37.582424 55.747235 16010)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, -1, -1)",
"color": "fast",
"length": 380,
"selection": "LINESTRING(37.582424 55.747235 16010, 37.582416 55.747159 16020, 37.582404 55.747011 16050, 37.582412 55.746834 16060, 37.582431 55.746766 16090, 37.582452 55.746691 16110, 37.582506 55.746541 16130, 37.582703 55.746087 16200, 37.582831 55.745789 16210, 37.582982 55.745441 16200, 37.583071 55.745234 16220, 37.583448 55.744362 16180, 37.583638 55.743918 16080, 37.583658 55.743874 16070)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, -1, 0, 0, 0, -1, -1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 3, 0, 0)",
"color": "normal",
"length": 1162,
"selection": "LINESTRING(37.583658 55.743874 16070, 37.583836 55.743413 16020, 37.584755 55.740962 15880, 37.584899 55.740612 15880, 37.584974 55.740442 15880, 37.584983 55.740421 15870, 37.585059 55.740260 15870, 37.585233 55.739936 15850, 37.585321 55.739771 15850, 37.585509 55.739421 15770, 37.585625 55.739204 15690, 37.585727 55.739026 15670, 37.585785 55.738935 15660, 37.585831 55.738862 15650, 37.585935 55.738740 15620, 37.585958 55.738712 15620, 37.586098 55.738602 15620, 37.586172 55.738556 15620, 37.586302 55.738476 15620, 37.586468 55.738385 15610, 37.586625 55.738309 15610, 37.586668 55.738287 15610, 37.586909 55.738185 15610, 37.587069 55.738121 15600, 37.589396 55.737195 15510, 37.589816 55.737029 15520, 37.589948 55.736973 15530, 37.592338 55.736114 15230, 37.592369 55.736103 15250, 37.593290 55.735782 15210, 37.593451 55.735726 15200)",
"style": "normal"
},
{
"angles": "LINESTRING(0, -1, 0, 0, 0)",
"color": "slow",
"length": 169,
"selection": "LINESTRING(37.593451 55.735726 15200, 37.593509 55.735705 15200, 37.594339 55.735426 14920, 37.594543 55.735361 14920, 37.594568 55.735353 14920, 37.595795 55.734960 14920)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 0)",
"color": "slow",
"length": 573,
"selection": "LINESTRING(37.595795 55.734960 14920, 37.597160 55.734524 14870, 37.597617 55.734377 14860, 37.599113 55.733898 14820, 37.600723 55.733383 14760, 37.600872 55.733335 14760, 37.603754 55.732413 14470)",
"style": "bridge"
},
{
"color": "slow",
"length": 543,
"selection": "LINESTRING(37.603754 55.732413, 37.603945 55.732352, 37.604248 55.732255, 37.604513 55.732170, 37.605023 55.732006, 37.605492 55.731856, 37.605757 55.731771, 37.606070 55.731671, 37.606790 55.731441, 37.607310 55.731274, 37.608387 55.730929, 37.610132 55.730370, 37.610566 55.730256, 37.610986 55.730149, 37.611402 55.730044)",
"style": "normal"
},
{
"color": "slow",
"length": 203,
"selection": "LINESTRING(37.611402 55.730044, 37.611871 55.729947, 37.612422 55.729834, 37.612955 55.729759, 37.613472 55.729709, 37.614037 55.729666, 37.614539 55.729642)",
"style": "tunnel"
},
{
"color": "slow",
"length": 539,
"selection": "LINESTRING(37.614539 55.729642, 37.614932 55.729631, 37.615526 55.729625, 37.616091 55.729630, 37.616365 55.729634, 37.617882 55.729655, 37.620322 55.729687, 37.623153 55.729726)",
"style": "normal"
},
{
"color": "slow",
"length": 186,
"selection": "LINESTRING(37.623153 55.729726, 37.623635 55.729736, 37.624086 55.729748, 37.624611 55.729767, 37.625130 55.729794, 37.625631 55.729825, 37.626116 55.729869)",
"style": "tunnel"
},
{
"color": "slow",
"length": 161,
"selection": "LINESTRING(37.626116 55.729869, 37.628643 55.730142)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, -1, 0, 0, -1, 1, 0, -3, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0)",
"color": "normal",
"length": 873,
"selection": "LINESTRING(37.628643 55.730142 14960, 37.630578 55.730351 14910, 37.631492 55.730450 14890, 37.633208 55.730635 14790, 37.633927 55.730713 14740, 37.634070 55.730728 14720, 37.634816 55.730799 14670, 37.635597 55.730876 14600, 37.635976 55.730914 14550, 37.636256 55.730945 14580, 37.636723 55.730997 14580, 37.637016 55.731052 14390, 37.637097 55.731069 14380, 37.637354 55.731134 14400, 37.637670 55.731218 14410, 37.637912 55.731284 14410, 37.638163 55.731361 14420, 37.638304 55.731410 14390, 37.638529 55.731488 14370, 37.638592 55.731515 14360, 37.638799 55.731601 14360, 37.638996 55.731697 14350, 37.639193 55.731802 14310, 37.639393 55.731913 14280, 37.639745 55.732134 14270, 37.639929 55.732250 14280, 37.640032 55.732312 14260, 37.640235 55.732435 14270, 37.641072 55.732941 14360, 37.641218 55.733025 14360)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "fast",
"length": 30,
"selection": "LINESTRING(37.641218 55.733025 14360, 37.641561 55.733217 14360)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0)",
"color": "fast",
"length": 77,
"selection": "LINESTRING(37.641561 55.733217 14360, 37.642330 55.733640 14380, 37.642444 55.733704 14390)",
"style": "bridge"
},
{
"angles": "LINESTRING(0, 0, 0, 0)",
"color": "fast",
"length": 138,
"selection": "LINESTRING(37.642444 55.733704 14390, 37.642894 55.733944 14360, 37.643430 55.734229 14350, 37.643845 55.734449 14340, 37.644034 55.734579 14330)",
"style": "normal"
},
{
"color": "fast",
"length": 478,
"selection": "LINESTRING(37.644034 55.734579, 37.645589 55.735650, 37.647026 55.736642, 37.648863 55.737908)",
"style": "bridge"
},
{
"color": "normal",
"length": 113,
"selection": "LINESTRING(37.648863 55.737908, 37.649803 55.738554, 37.650012 55.738698)",
"style": "bridge"
}
],
"names": ["Большая Садовая"]
},
"outcoming_path_comment": "8.2 км прямо",
"turn_angle": 83,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Держитесь левее на ул. Нижняя Краснохолмская",
"icon": "crossroad_keep_left",
"id": "7039029129454347029",
"outcoming_path": {
"distance": 3010,
"duration": 318,
"geometry": [
{
"color": "fast",
"length": 212,
"selection": "LINESTRING(37.650012 55.738698, 37.650378 55.738951, 37.650907 55.739316, 37.652159 55.740178)",
"style": "normal"
},
{
"color": "fast",
"length": 322,
"selection": "LINESTRING(37.652159 55.740178, 37.652727 55.740543, 37.653191 55.740889, 37.653580 55.741214, 37.653922 55.741543, 37.654206 55.741876, 37.654503 55.742282, 37.654716 55.742661)",
"style": "tunnel"
},
{
"color": "fast",
"length": 187,
"selection": "LINESTRING(37.654716 55.742661, 37.654962 55.743244, 37.655088 55.743664, 37.655122 55.743776, 37.655229 55.744322)",
"style": "normal"
},
{
"color": "normal",
"length": 125,
"selection": "LINESTRING(37.655229 55.744322, 37.655236 55.744357, 37.655385 55.745443)",
"style": "normal"
},
{
"color": "fast",
"length": 225,
"selection": "LINESTRING(37.655385 55.745443, 37.655661 55.747466)",
"style": "bridge"
},
{
"color": "fast",
"length": 266,
"selection": "LINESTRING(37.655661 55.747466, 37.655787 55.748389, 37.655859 55.748912, 37.655882 55.749084, 37.655890 55.749148, 37.655916 55.749428, 37.655928 55.749578, 37.655954 55.749874)",
"style": "normal"
},
{
"angles": "LINESTRING(-1, 2, 0)",
"color": "fast",
"length": 73,
"selection": "LINESTRING(37.655954 55.749874 14640, 37.655958 55.749916 14630, 37.656003 55.750343 14940, 37.656020 55.750534 14940)",
"style": "bridge"
},
{
"angles": "LINESTRING(0, 2, 2, 3, 2, 2, 2, 2, 0, 1, 1, -1, 1)",
"color": "fast",
"length": 518,
"selection": "LINESTRING(37.656020 55.750534 14940, 37.656044 55.750786 14950, 37.656066 55.751029 15110, 37.656143 55.751841 15550, 37.656172 55.752149 15840, 37.656191 55.752283 15910, 37.656227 55.752446 16000, 37.656264 55.752566 16080, 37.656357 55.752792 16240, 37.656503 55.753147 16270, 37.657051 55.754483 16580, 37.657073 55.754537 16600, 37.657178 55.754790 16550, 37.657298 55.755135 16640)",
"style": "normal"
},
{
"angles": "LINESTRING(0, -1, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)",
"color": "normal",
"length": 360,
"selection": "LINESTRING(37.657298 55.755135 16640, 37.657338 55.755250 16650, 37.657407 55.755446 16600, 37.657476 55.755675 16560, 37.657556 55.755950 16550, 37.657630 55.756237 16570, 37.657665 55.756405 16570, 37.657732 55.756732 16630, 37.657794 55.757123 16640, 37.657807 55.757199 16640, 37.657846 55.757608 16620, 37.657850 55.757653 16610, 37.657858 55.757946 16610, 37.657860 55.758086 16620, 37.657857 55.758364 16580)",
"style": "normal"
},
{
"angles": "LINESTRING(-1)",
"color": "normal",
"length": 11,
"selection": "LINESTRING(37.657857 55.758364 16580, 37.657856 55.758469 16540)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0)",
"color": "normal",
"length": 95,
"selection": "LINESTRING(37.657856 55.758469 16540, 37.657852 55.758756 16580, 37.657850 55.758906 16580, 37.657844 55.759340 16560)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0, -1, -1)",
"color": "fast",
"length": 189,
"selection": "LINESTRING(37.657844 55.759340 16560, 37.657844 55.759350 16560, 37.657761 55.760218 16540, 37.657743 55.760402 16510, 37.657728 55.760547 16500, 37.657685 55.761006 16410, 37.657677 55.761053 16400)",
"style": "normal"
},
{
"angles": "LINESTRING(2)",
"color": "fast",
"length": 12,
"selection": "LINESTRING(37.657677 55.761053 16400, 37.657658 55.761167 16460)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0, 0)",
"color": "fast",
"length": 182,
"selection": "LINESTRING(37.657658 55.761167 16460, 37.657615 55.761429 16460, 37.657587 55.761595 16480, 37.657416 55.762042 16530, 37.657132 55.762782 16640)",
"style": "normal"
},
{
"angles": "LINESTRING(0)",
"color": "fast",
"length": 44,
"selection": "LINESTRING(37.657132 55.762782 16640, 37.656935 55.763169 16690)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 1, 0, 1, -1, 2)",
"color": "normal",
"length": 106,
"selection": "LINESTRING(37.656935 55.763169 16690, 37.656820 55.763397 16710, 37.656715 55.763603 16740, 37.656690 55.763648 16750, 37.656650 55.763718 16760, 37.656574 55.763840 16790, 37.656513 55.763937 16750, 37.656416 55.764092 16870)",
"style": "normal"
},
{
"angles": "LINESTRING(0, 0, 0)",
"color": "normal",
"length": 83,
"selection": "LINESTRING(37.656416 55.764092 16870, 37.656235 55.764223 16880, 37.656076 55.764339 16900, 37.655591 55.764691 16920)",
"style": "normal"
}
],
"names": ["Нижняя Краснохолмская"]
},
"outcoming_path_comment": "3 км прямо",
"turn_angle": 0,
"turn_direction": "keep_left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "9400834516603267793",
"outcoming_path": {
"distance": 54,
"duration": 42,
"geometry": [
{
"angles": "LINESTRING(1, -6)",
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691 16920, 37.655782 55.764778 16950, 37.655865 55.764817 16820)",
"style": "living_zone"
},
{
"angles": "LINESTRING(3)",
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817 16820, 37.656064 55.764909 16960)",
"style": "archway"
},
{
"angles": "LINESTRING(0, -1)",
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909 16960, 37.656228 55.764957 16970, 37.656303 55.764992 16960)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "12232971029337858154",
"outcoming_path": {
"distance": 36,
"duration": 11,
"geometry": [
{
"angles": "LINESTRING(1, 0, 0, 0, 0)",
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992 16960, 37.656485 55.764865 17020, 37.656510 55.764857 17020, 37.656538 55.764857 17020, 37.656572 55.764863 17020, 37.656748 55.764924 17020)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 1.0,
"requested_filters": ["dirt_road", "toll_road"],
"result_filters": ["dirt_road", "toll_road"],
"route_id": "moscow-tr-back.m1/truckrouting/1752677589.324117",
"total_distance": 12641,
"total_duration": 2320,
"type": "truckrouting",
"ui_total_distance": {
"unit": "км",
"value": "13"
},
"ui_total_duration": "38 мин",
"visited_pass_zone_ids": [3, 4],
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

Для экстренных служб

При построении маршрута для проезда экстренных служб учитываются параметры автомобильного маршрута, но игнорируются правила дорожного движения для наиболее быстрого поезда (допускается проезд по полосе встречного движения, манёвры при запрещающих знаках и т.д.).

Примечание

Построение маршрутов для экстренных служб доступно по дополнительному запросу и только на определённых территориях. Чтобы начать строить маршруты для экстренных служб, обратитесь в отдел продаж 2ГИС.


Пешком

При построении пешеходного маршрута учитываются тротуары, пешеходные переходы (в том числе подземные и наземные), пешеходные зоны и другое. Вы можете дополнительно настроить избегание лестниц без пандусов, грунтовых дорог, магистральных дорог и переправ, а также включить в ответ инструкции по навигации и информацию о перепадах высот на маршруте. Также вы можете построить маршрут внутри здания: см. отдельный пример ниже.

Чтобы построить пешеходный маршрут, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points (обязательный параметр) — набор координат точек для маршрута (минимум две). Тип точек должен соответствовать пешеходному маршруту (type : walking).

  • transport: walking — способ передвижения: пешком.

  • params — дополнительные параметры:

    • pedestrian — параметры пешеходного маршрута:

      • use_instructions: true — выдать инструкции по навигации для пешеходных маршрутов.
  • filters — исключение определённых типов дорог, если необходимо:

    • dirt_road — грунтовые дороги;
    • ferry — переправы;
    • highway — магистральные дороги;
    • ban_stairway — лестницы без пандусов.
  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.
  • locale: ru — текстовые описания элементов маршрута на русском языке.

  • need_altitudes: true — информация о высотах на маршруте.

Пример запроса:

curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"type": "walking",
"lon": 37.582591,
"lat": 55.775364
},
{
"type": "walking",
"lon": 37.656625,
"lat": 55.765036
}
],
"transport": "walking",
"params": {
"pedestrian": {
"use_instructions": true
}
},
"filters": [
"dirt_road",
"ferry",
"highway",
"ban_stairway"
],
"output": "detailed",
"locale": "ru",
"need_altitudes": true
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"filters": ["dirt_road", "ferry", "highway", "ban_stairway"],
"locale": "ru",
"need_altitudes": true,
"output": "detailed",
"params": {
"pedestrian": {
"use_instructions": true
}
},
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "walking"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "walking"
}
],
"transport": "walking"
},
"result": [
{
"algorithm": "кратчайший",
"altitudes_info": {
"elevation_gain": 7710,
"elevation_loss": 7770,
"max_altitude": 18250,
"max_road_angle": 9,
"min_altitude": 15780
},
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.582738 55.775419)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656554 55.765081, 37.656625 55.765036)"
}
},
"id": "10207019389071139531",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "9699378646967848640",
"outcoming_path": {
"distance": 4,
"duration": 3,
"geometry": [
{
"angles": "LINESTRING(-1)",
"length": 4,
"selection": "LINESTRING(37.582738 55.775419 17310, 37.582798 55.775434 17300)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "10 м прямо",
"type": "pedestrian_begin"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "6860797766662206838",
"outcoming_path": {
"distance": 167,
"duration": 111,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 0, -1, -2, 0, 0, 0)",
"length": 171,
"selection": "LINESTRING(37.582798 55.775434 17300, 37.582634 55.775643 17280, 37.582535 55.775768 17290, 37.582362 55.775987 17290, 37.582308 55.776117 17290, 37.582292 55.776158 17290, 37.582270 55.776212 17290, 37.582021 55.776526 17220, 37.582011 55.776539 17210, 37.582001 55.776551 17210, 37.581796 55.776810 17220, 37.581812 55.776856 17220)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "2759848632956653239",
"outcoming_path": {
"distance": 149,
"duration": 99,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 1, 0, 0, 0, 0)",
"length": 150,
"selection": "LINESTRING(37.581812 55.776856 17220, 37.581834 55.776926 17220, 37.582132 55.777094 17190, 37.582339 55.777211 17200, 37.582482 55.777292 17200, 37.582620 55.777370 17200, 37.583213 55.777710 17330, 37.583226 55.777717 17330, 37.583315 55.777750 17320, 37.583416 55.777767 17320, 37.583501 55.777783 17320)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 54,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "955913692931592312",
"outcoming_path": {
"distance": 79,
"duration": 53,
"geometry": [
{
"angles": "LINESTRING(0, 0, 1, 0, 1, 1)",
"length": 79,
"selection": "LINESTRING(37.583501 55.777783 17320, 37.583621 55.777771 17320, 37.583728 55.777751 17320, 37.584331 55.777475 17470, 37.584448 55.777454 17480, 37.584494 55.777458 17490, 37.584508 55.777409 17500)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "80 м прямо",
"turn_angle": 60,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "5731321777756457327",
"outcoming_path": {
"distance": 9,
"duration": 6,
"geometry": [
{
"angles": "LINESTRING(-2, 0)",
"length": 9,
"selection": "LINESTRING(37.584508 55.777409 17500, 37.584486 55.777362 17460, 37.584536 55.777339 17460)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "10 м прямо",
"turn_angle_first": 90,
"turn_angle_second": -90,
"turn_direction_first": "right",
"turn_direction_second": "left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "12443181236702472658",
"outcoming_path": {
"distance": 114,
"duration": 76,
"geometry": [
{
"angles": "LINESTRING(0)",
"length": 8,
"selection": "LINESTRING(37.584536 55.777339 17460, 37.584644 55.777290 17460)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0, -4, 0)",
"length": 108,
"selection": "LINESTRING(37.584644 55.777290 17460, 37.584784 55.777231 17490, 37.584698 55.777159 17480, 37.584809 55.776905 17480, 37.584819 55.776880 17490, 37.584828 55.776864 17490, 37.584834 55.776856 17490, 37.584840 55.776850 17490, 37.584852 55.776841 17490, 37.584876 55.776825 17490, 37.585176 55.776646 17500, 37.585205 55.776631 17500, 37.585241 55.776617 17510, 37.585283 55.776602 17510, 37.585313 55.776595 17510, 37.585339 55.776590 17520, 37.585369 55.776587 17520, 37.585380 55.776588 17520, 37.585389 55.776589 17520, 37.585400 55.776593 17510, 37.585460 55.776563 17510)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "on_traffic_light",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "6913229185516945240",
"outcoming_path": {
"distance": 295,
"duration": 197,
"geometry": [
{
"angles": "LINESTRING(0)",
"length": 12,
"selection": "LINESTRING(37.585460 55.776563 17510, 37.585606 55.776492 17500)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(0, -1, 0, 0, 0)",
"length": 285,
"selection": "LINESTRING(37.585606 55.776492 17500, 37.585669 55.776455 17500, 37.585555 55.776380 17480, 37.585754 55.776275 17480, 37.587430 55.775293 17560, 37.588535 55.774645 17600)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "14879468253314714598",
"outcoming_path": {
"distance": 212,
"duration": 141,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0)",
"length": 212,
"selection": "LINESTRING(37.588535 55.774645 17600, 37.588607 55.774597 17590, 37.590774 55.773328 17700, 37.590788 55.773326 17700, 37.590890 55.773267 17700)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "6980479169442816526",
"outcoming_path": {
"distance": 122,
"duration": 81,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, -1)",
"length": 123,
"selection": "LINESTRING(37.590890 55.773267 17700, 37.590996 55.773223 17700, 37.592136 55.772557 17790, 37.592233 55.772500 17790, 37.592262 55.772470 17780)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "12393117214478264634",
"outcoming_path": {
"distance": 183,
"duration": 122,
"geometry": [
{
"angles": "LINESTRING(-1, 0, 1)",
"length": 184,
"selection": "LINESTRING(37.592262 55.772470 17780, 37.592310 55.772431 17770, 37.594241 55.771299 17700, 37.594293 55.771270 17710)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "7938050488433498281",
"outcoming_path": {
"distance": 155,
"duration": 103,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, -1, 2, 2, 0)",
"length": 156,
"selection": "LINESTRING(37.594293 55.771270 17710, 37.594383 55.771218 17720, 37.594560 55.771114 17720, 37.594847 55.770946 17720, 37.595239 55.770716 17720, 37.595794 55.770391 17620, 37.595992 55.770277 17720, 37.595995 55.770264 17730, 37.596011 55.770251 17730)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "7731639997555964546",
"outcoming_path": {
"distance": 89,
"duration": 59,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0)",
"length": 89,
"selection": "LINESTRING(37.596011 55.770251 17730, 37.596088 55.770201 17740, 37.596302 55.770061 17740, 37.596805 55.769701 17750, 37.596913 55.769622 17740)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "90 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "11074090617324138189",
"outcoming_path": {
"distance": 226,
"duration": 151,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 1, 3)",
"length": 228,
"selection": "LINESTRING(37.596913 55.769622 17740, 37.597001 55.769574 17750, 37.597246 55.769439 17720, 37.598335 55.768841 17730, 37.599471 55.768221 17930, 37.599527 55.768190 17980)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "250 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "17648912545882262608",
"outcoming_path": {
"distance": 118,
"duration": 79,
"geometry": [
{
"angles": "LINESTRING(1, 0, 0, -1, -2, 0, 0, 1, 0, 1, -12)",
"length": 120,
"selection": "LINESTRING(37.599527 55.768190 17980, 37.599607 55.768146 18000, 37.600167 55.767839 18010, 37.600209 55.767818 18010, 37.600266 55.767795 18000, 37.600354 55.767758 17950, 37.600514 55.767669 17930, 37.600539 55.767652 17930, 37.600562 55.767630 17940, 37.600588 55.767609 17940, 37.600843 55.767470 18010, 37.600906 55.767436 17800)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "7230173077901956160",
"outcoming_path": {
"distance": 156,
"duration": 104,
"geometry": [
{
"length": 158,
"selection": "LINESTRING(37.600906 55.767436, 37.600955 55.767409, 37.600951 55.767393, 37.600962 55.767382, 37.601486 55.767094, 37.601506 55.767106, 37.601850 55.766917, 37.602633 55.766487, 37.602686 55.766458)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "7376482323294365131",
"outcoming_path": {
"distance": 78,
"duration": 52,
"geometry": [
{
"angles": "LINESTRING(-1, 2, -6, 3)",
"length": 80,
"selection": "LINESTRING(37.602686 55.766458 17970, 37.602795 55.766399 17940, 37.603396 55.766071 18250, 37.603509 55.766009 18080, 37.603611 55.765952 18150)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "80 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "1110541952860181363",
"outcoming_path": {
"distance": 33,
"duration": 22,
"geometry": [
{
"angles": "LINESTRING(-1)",
"length": 33,
"selection": "LINESTRING(37.603611 55.765952 18150, 37.603987 55.766170 18020)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "8243507960615919464",
"outcoming_path": {
"distance": 70,
"duration": 47,
"geometry": [
{
"angles": "LINESTRING(-1, 0, -1)",
"length": 71,
"selection": "LINESTRING(37.603987 55.766170 18020, 37.604330 55.765981 17910, 37.604512 55.765881 17910, 37.604809 55.765719 17800)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "8272148929171838643",
"outcoming_path": {
"distance": 145,
"duration": 97,
"geometry": [
{
"angles": "LINESTRING(-1, -2, 2)",
"length": 146,
"selection": "LINESTRING(37.604809 55.765719 17800, 37.606463 55.766449 17510, 37.606515 55.766472 17490, 37.606650 55.766531 17550)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -78,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "5970407802820512635",
"outcoming_path": {
"distance": 162,
"duration": 108,
"geometry": [
{
"angles": "LINESTRING(2, -2, 0, 0, -1, 0, -2, -4, 1, -2)",
"length": 166,
"selection": "LINESTRING(37.606650 55.766531 17550, 37.606763 55.766553 17600, 37.607040 55.766621 17510, 37.607143 55.766657 17510, 37.607567 55.766800 17500, 37.607642 55.766824 17480, 37.608278 55.767043 17480, 37.608641 55.767162 17310, 37.608748 55.767197 17220, 37.608850 55.767231 17240, 37.608914 55.767169 17200)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle_first": 0,
"turn_angle_second": -45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "13467641249833935965",
"outcoming_path": {
"distance": 298,
"duration": 199,
"geometry": [
{
"angles": "LINESTRING(5)",
"length": 7,
"selection": "LINESTRING(37.608914 55.767169 17200, 37.608974 55.767110 17310)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-7, 0, 0, 0, 0, -1, -1, -1, 1)",
"length": 292,
"selection": "LINESTRING(37.608974 55.767110 17310, 37.609228 55.767079 16980, 37.609291 55.767128 16980, 37.610092 55.767392 17020, 37.611247 55.767772 16940, 37.612020 55.768006 16920, 37.612483 55.768145 16840, 37.612646 55.768184 16800, 37.612819 55.768190 16770, 37.613089 55.768133 16820)",
"style": "park_path",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "300 м прямо",
"turn_angle_first": 90,
"turn_angle_second": -90,
"turn_direction_first": "right",
"turn_direction_second": "left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "empty",
"comment": "Держитесь правее",
"icon": "crossroad_keep_right",
"id": "17020996055302418170",
"outcoming_path": {
"distance": 32,
"duration": 21,
"geometry": [
{
"angles": "LINESTRING(0, 1)",
"length": 33,
"selection": "LINESTRING(37.613089 55.768133 16820, 37.613322 55.768084 16810, 37.613469 55.767950 16880)",
"style": "park_path",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": 24,
"turn_direction": "keep_right",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "11238183946676551772",
"outcoming_path": {
"distance": 18,
"duration": 12,
"geometry": [
{
"angles": "LINESTRING(-8, -4, 9)",
"length": 19,
"selection": "LINESTRING(37.613469 55.767950 16880, 37.613547 55.767895 16690, 37.613591 55.767879 16650, 37.613717 55.767915 16910)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle_first": 0,
"turn_angle_second": -90,
"turn_direction_first": "straight",
"turn_direction_second": "left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "1478198762515978155",
"outcoming_path": {
"distance": 278,
"duration": 185,
"geometry": [
{
"angles": "LINESTRING(-7, 0, -2, -1, 0, -1, -1, -1, 0, -1, 0)",
"length": 280,
"selection": "LINESTRING(37.613717 55.767915 16910, 37.613829 55.767929 16760, 37.614695 55.767880 16780, 37.615626 55.767807 16450, 37.615801 55.767787 16420, 37.616180 55.767730 16430, 37.616582 55.767670 16330, 37.616764 55.767642 16280, 37.617857 55.767477 16080, 37.617923 55.767460 16080, 37.617973 55.767444 16070, 37.618088 55.767427 16060)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "300 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "15946151846605453229",
"outcoming_path": {
"distance": 218,
"duration": 145,
"geometry": [
{
"angles": "LINESTRING(0, 0, 0, 0, 0, 0, -2)",
"length": 219,
"selection": "LINESTRING(37.618088 55.767427 16060, 37.618173 55.767408 16060, 37.618311 55.767383 16050, 37.618791 55.767311 16040, 37.620101 55.767114 15930, 37.620906 55.766993 15900, 37.621374 55.766914 15860, 37.621467 55.766896 15820)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "17057463247682401393",
"outcoming_path": {
"distance": 22,
"duration": 15,
"geometry": [
{
"angles": "LINESTRING(-1, 2)",
"length": 23,
"selection": "LINESTRING(37.621467 55.766896 15820, 37.621645 55.766864 15780, 37.621819 55.766831 15840)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "6301794246179566435",
"outcoming_path": {
"distance": 121,
"duration": 81,
"geometry": [
{
"angles": "LINESTRING(-1, 0, 2, -3, 3, 4, 2, 4, 6)",
"length": 127,
"selection": "LINESTRING(37.621819 55.766831 15840, 37.621909 55.766815 15820, 37.622755 55.766658 15880, 37.622919 55.766628 15950, 37.623083 55.766598 15840, 37.623355 55.766548 16020, 37.623491 55.766523 16130, 37.623584 55.766505 16170, 37.623680 55.766489 16240, 37.623751 55.766484 16330)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "664897464967174363",
"outcoming_path": {
"distance": 190,
"duration": 127,
"geometry": [
{
"angles": "LINESTRING(-4, 3, 1, 3, 8)",
"length": 191,
"selection": "LINESTRING(37.623751 55.766484 16330, 37.623859 55.766477 16240, 37.624863 55.766413 16780, 37.625616 55.766365 17000, 37.626724 55.766313 17570, 37.626794 55.766313 17680)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "430771760163018021",
"outcoming_path": {
"distance": 289,
"duration": 193,
"geometry": [
{
"angles": "LINESTRING(-1, 0, -1, 1, 0, 0, 1, 1, 0, 7, 0, 0, 1, 1)",
"length": 291,
"selection": "LINESTRING(37.626794 55.766313 17680, 37.626894 55.766312 17660, 37.627683 55.766320 17610, 37.627974 55.766323 17570, 37.628521 55.766329 17640, 37.629634 55.766342 17730, 37.630210 55.766348 17780, 37.631135 55.766358 17890, 37.631224 55.766360 17910, 37.631238 55.766356 17910, 37.631242 55.766353 17920, 37.631243 55.766349 17920, 37.631239 55.766340 17920, 37.631219 55.766301 17930, 37.631321 55.766284 17960)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "13966233030161666013",
"outcoming_path": {
"distance": 78,
"duration": 52,
"geometry": [
{
"angles": "LINESTRING(-1)",
"length": 3,
"selection": "LINESTRING(37.631321 55.766284 17960, 37.631367 55.766277 17950)",
"style": "crosswalk",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-12, 8, 8, 9, 8, 1, 0, 2)",
"length": 77,
"selection": "LINESTRING(37.631367 55.766277 17950, 37.631462 55.766262 17720, 37.631482 55.766279 17780, 37.631498 55.766287 17810, 37.631515 55.766290 17840, 37.631539 55.766292 17880, 37.631831 55.766282 17960, 37.632415 55.766262 18010, 37.632581 55.766254 18090)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "80 м прямо",
"turn_angle_first": 0,
"turn_angle_second": -45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "6035563640739467799",
"outcoming_path": {
"distance": 193,
"duration": 129,
"geometry": [
{
"angles": "LINESTRING(-14, 1, -1, 0, 0, 0, -3, 0, 2, 2, 2, 2, 1, 1, 0)",
"length": 195,
"selection": "LINESTRING(37.632581 55.766254 18090, 37.632675 55.766243 17820, 37.633106 55.766215 17910, 37.633622 55.766197 17800, 37.633837 55.766185 17800, 37.633959 55.766172 17800, 37.634502 55.766114 17830, 37.634593 55.766102 17780, 37.635036 55.766043 17770, 37.635111 55.766033 17800, 37.635233 55.766014 17850, 37.635324 55.765989 17880, 37.635372 55.765970 17900, 37.635411 55.765946 17910, 37.635445 55.765917 17920, 37.635571 55.765879 17910)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "200 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "1024123420641628608",
"outcoming_path": {
"distance": 132,
"duration": 88,
"geometry": [
{
"angles": "LINESTRING(-10, -2, 1, 0, 1, -1, 1, -8, 3, -3)",
"length": 136,
"selection": "LINESTRING(37.635571 55.765879 17910, 37.635642 55.765857 17750, 37.635804 55.765788 17660, 37.636248 55.765571 17770, 37.636340 55.765513 17780, 37.636410 55.765465 17800, 37.636684 55.765346 17760, 37.636996 55.765210 17800, 37.637049 55.765186 17700, 37.637125 55.765144 17760, 37.637244 55.765107 17680)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "10774931502350085369",
"outcoming_path": {
"distance": 25,
"duration": 17,
"geometry": [
{
"angles": "LINESTRING(0, -3, -1, -2, 1)",
"length": 27,
"selection": "LINESTRING(37.637244 55.765107 17680, 37.637342 55.765077 17680, 37.637425 55.765056 17620, 37.637455 55.765046 17610, 37.637508 55.765018 17580, 37.637592 55.765068 17600)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle_first": 0,
"turn_angle_second": -90,
"turn_direction_first": "straight",
"turn_direction_second": "left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "1333470326835812601",
"outcoming_path": {
"distance": 49,
"duration": 33,
"geometry": [
{
"angles": "LINESTRING(0, 0, -1, -1)",
"length": 51,
"selection": "LINESTRING(37.637592 55.765068 17600, 37.637660 55.765114 17590, 37.637912 55.765199 17590, 37.638179 55.765273 17560, 37.638286 55.765303 17540)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "14104230778758300015",
"outcoming_path": {
"distance": 54,
"duration": 36,
"geometry": [
{
"angles": "LINESTRING(-1, -1, 1, -1)",
"length": 55,
"selection": "LINESTRING(37.638286 55.765303 17540, 37.638365 55.765358 17510, 37.638278 55.765399 17490, 37.638731 55.765603 17560, 37.638786 55.765628 17540)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 45,
"turn_direction_first": "straight",
"turn_direction_second": "keep_right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "16193663482553093473",
"outcoming_path": {
"distance": 114,
"duration": 76,
"geometry": [
{
"angles": "LINESTRING(1, 0, 6)",
"length": 115,
"selection": "LINESTRING(37.638786 55.765628 17540, 37.638852 55.765661 17550, 37.640180 55.765106 17590, 37.640262 55.765066 17720)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle_first": 0,
"turn_angle_second": 90,
"turn_direction_first": "straight",
"turn_direction_second": "right",
"type": "pedestrian_road_crossing"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "203183039228841712",
"outcoming_path": {
"distance": 69,
"duration": 46,
"geometry": [
{
"angles": "LINESTRING(3, -1)",
"length": 70,
"selection": "LINESTRING(37.640262 55.765066 17720, 37.640320 55.765038 17770, 37.641235 55.765324 17650)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "70 м прямо",
"turn_angle_first": 0,
"turn_angle_second": -90,
"turn_direction_first": "straight",
"turn_direction_second": "left",
"type": "pedestrian_road_crossing"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "14118942886704900135",
"outcoming_path": {
"distance": 73,
"duration": 49,
"geometry": [
{
"angles": "LINESTRING(-1)",
"length": 7,
"selection": "LINESTRING(37.641235 55.765324 17650, 37.641297 55.765268 17620)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-1, 0, 1, -3, -1, -1, -1, 0, -1, -6)",
"length": 67,
"selection": "LINESTRING(37.641297 55.765268 17620, 37.641333 55.765232 17610, 37.641960 55.765030 17590, 37.641966 55.765010 17600, 37.641981 55.764993 17580, 37.642006 55.764979 17570, 37.642037 55.764970 17560, 37.642072 55.764967 17550, 37.642106 55.764970 17550, 37.642137 55.764979 17540, 37.642161 55.764993 17500)",
"style": "park_path",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "70 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "9656865039294151275",
"outcoming_path": {
"distance": 34,
"duration": 23,
"geometry": [
{
"angles": "LINESTRING(0)",
"length": 28,
"selection": "LINESTRING(37.642161 55.764993 17500, 37.642565 55.764878 17480)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(6, 7)",
"length": 6,
"selection": "LINESTRING(37.642565 55.764878 17480, 37.642593 55.764850 17550, 37.642614 55.764828 17610)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": 72,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "6690485589559797167",
"outcoming_path": {
"distance": 26,
"duration": 17,
"geometry": [
{
"angles": "LINESTRING(-2, -4)",
"length": 26,
"selection": "LINESTRING(37.642614 55.764828 17610, 37.642660 55.764842 17590, 37.642973 55.764946 17330)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Держитесь правее",
"icon": "crossroad_keep_right",
"id": "16488846393117109600",
"outcoming_path": {
"distance": 29,
"duration": 19,
"geometry": [
{
"angles": "LINESTRING(1)",
"length": 29,
"selection": "LINESTRING(37.642973 55.764946 17330, 37.643436 55.764918 17420)",
"style": "park_path",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": 36,
"turn_direction": "keep_right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Держитесь правее",
"icon": "crossroad_keep_right",
"id": "9095021046075488908",
"outcoming_path": {
"distance": 75,
"duration": 50,
"geometry": [
{
"angles": "LINESTRING(1, -2)",
"length": 44,
"selection": "LINESTRING(37.643436 55.764918 17420, 37.643902 55.764849 17510, 37.644122 55.764816 17430)",
"style": "park_path",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0, -1)",
"length": 30,
"selection": "LINESTRING(37.644122 55.764816 17430, 37.644189 55.764824 17440, 37.644232 55.764815 17440, 37.644448 55.764638 17390)",
"style": "living_zone",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "80 м прямо",
"turn_angle": 12,
"turn_direction": "keep_right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Держитесь левее",
"icon": "crossroad_keep_left",
"id": "5542089920403325557",
"outcoming_path": {
"distance": 107,
"duration": 71,
"geometry": [
{
"angles": "LINESTRING(2, 1, 0, 0, -1, -1, 0, 2, 2, 0)",
"length": 111,
"selection": "LINESTRING(37.644448 55.764638 17390, 37.644670 55.764618 17470, 37.644715 55.764634 17480, 37.644976 55.764731 17500, 37.645143 55.764794 17510, 37.645339 55.764866 17460, 37.645517 55.764933 17410, 37.645746 55.765009 17400, 37.645862 55.765048 17440, 37.645904 55.765059 17460, 37.645985 55.765082 17460)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": -42,
"turn_direction": "keep_left",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "1638842969577106337",
"outcoming_path": {
"distance": 134,
"duration": 89,
"geometry": [
{
"angles": "LINESTRING(-3, -3, 1, 0, -2, 8)",
"length": 135,
"selection": "LINESTRING(37.645985 55.765082 17460, 37.646074 55.765108 17400, 37.646104 55.765116 17380, 37.646469 55.765216 17420, 37.647644 55.765476 17420, 37.647888 55.765525 17320, 37.647987 55.765546 17490)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "12155778021729728281",
"outcoming_path": {
"distance": 299,
"duration": 199,
"geometry": [
{
"angles": "LINESTRING(-2, -1, 0, 0, 0, 0, 0, -1)",
"length": 302,
"selection": "LINESTRING(37.647987 55.765546 17490, 37.648074 55.765565 17450, 37.648612 55.765687 17380, 37.649098 55.765796 17380, 37.650630 55.766131 17320, 37.651251 55.766267 17320, 37.651658 55.766356 17280, 37.652400 55.766518 17320, 37.652460 55.766479 17300)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "300 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "3304551206802812598",
"outcoming_path": {
"distance": 123,
"duration": 82,
"geometry": [
{
"angles": "LINESTRING(1, -1, 0, -1, 0, 1)",
"length": 125,
"selection": "LINESTRING(37.652460 55.766479 17300, 37.652525 55.766434 17320, 37.652887 55.766176 17150, 37.653261 55.765916 17190, 37.653397 55.765823 17150, 37.653654 55.765643 17170, 37.653716 55.765601 17180)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "15467072652299516867",
"outcoming_path": {
"distance": 104,
"duration": 69,
"geometry": [
{
"angles": "LINESTRING(-1, 0, -1, -1, -4)",
"length": 105,
"selection": "LINESTRING(37.653716 55.765601 17180, 37.653770 55.765563 17170, 37.654315 55.765184 17110, 37.654590 55.764970 17050, 37.654682 55.764893 17020, 37.654735 55.764850 16940)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "onto_crosswalk",
"comment": "Движение прямо",
"icon": "crossroad_straight",
"id": "8896291537589637243",
"outcoming_path": {
"distance": 95,
"duration": 63,
"geometry": [
{
"angles": "LINESTRING(5, 0, -1)",
"length": 70,
"selection": "LINESTRING(37.654735 55.764850 16940, 37.654785 55.764815 17020, 37.655412 55.764382 16950, 37.655367 55.764362 16940)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(-1, 0, 0)",
"length": 26,
"selection": "LINESTRING(37.655367 55.764362 16940, 37.655404 55.764324 16930, 37.655521 55.764234 16920, 37.655607 55.764168 16930)",
"style": "park_path",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": 0,
"turn_direction": "straight",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Крутой поворот налево",
"icon": "crossroad_sharply_left",
"id": "4200927460251528804",
"outcoming_path": {
"distance": 48,
"duration": 32,
"geometry": [
{
"length": 47,
"selection": "LINESTRING(37.655607 55.764168, 37.655657 55.764186, 37.655642 55.764197, 37.655435 55.764339, 37.655448 55.764345, 37.655656 55.764201)",
"style": "normal",
"zlevel": "zlevel-normal"
},
{
"length": 1,
"selection": "LINESTRING(37.655656 55.764201, 37.655676 55.764187)",
"style": "undergroundway",
"zlevel": "zlevel-negative"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": -180,
"turn_direction": "sharply_left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "15590440219616818381",
"outcoming_path": {
"distance": 43,
"duration": 29,
"geometry": [
{
"length": 43,
"selection": "LINESTRING(37.655676 55.764187, 37.656124 55.764380, 37.656232 55.764426)",
"style": "undergroundway",
"zlevel": "zlevel-negative"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "5333926003124605618",
"outcoming_path": {
"distance": 29,
"duration": 19,
"geometry": [
{
"length": 4,
"selection": "LINESTRING(37.656232 55.764426, 37.656191 55.764455)",
"style": "undergroundway",
"zlevel": "zlevel-negative"
},
{
"length": 25,
"selection": "LINESTRING(37.656191 55.764455, 37.656072 55.764537, 37.656086 55.764543, 37.656215 55.764455)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Крутой поворот направо",
"icon": "crossroad_sharply_right",
"id": "15675976530219886283",
"outcoming_path": {
"distance": 49,
"duration": 33,
"geometry": [
{
"length": 50,
"selection": "LINESTRING(37.656215 55.764455, 37.656228 55.764445, 37.656260 55.764460, 37.655782 55.764778)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 174,
"turn_direction": "sharply_right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "9082966231548059960",
"outcoming_path": {
"distance": 57,
"duration": 38,
"geometry": [
{
"angles": "LINESTRING(-6)",
"length": 6,
"selection": "LINESTRING(37.655782 55.764778 16950, 37.655866 55.764818 16820)",
"style": "living_zone",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(3)",
"length": 16,
"selection": "LINESTRING(37.655866 55.764818 16820, 37.656064 55.764909 16960)",
"style": "archway",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(0, -1)",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909 16960, 37.656228 55.764957 16970, 37.656303 55.764992 16960)",
"style": "living_zone",
"zlevel": "zlevel-normal"
},
{
"angles": "LINESTRING(1, 0)",
"length": 18,
"selection": "LINESTRING(37.656303 55.764992 16960, 37.656543 55.765075 17010, 37.656554 55.765081 17010)",
"style": "normal",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "60 м прямо",
"turn_angle": 96,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "7639803998504047939",
"outcoming_path_comment": "Вы на месте!",
"type": "pedestrian_end"
}
],
"reliability": 0.0,
"requested_filters": ["dirt_road", "ferry", "highway", "ban_stairway"],
"result_filters": ["dirt_road", "ferry", "highway", "ban_stairway"],
"route_id": "moscow-pd-back.m9/pedestrianrouting/1751540871.546339",
"total_distance": 6078,
"total_duration": 4052,
"type": "pedestrianrouting",
"ui_total_distance": {
"unit": "км",
"value": "6.1"
},
"ui_total_duration": "1 час 7 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77541941309216,
"lon": 37.5827383882787
},
"projected_point": {
"lat": 55.77541941309216,
"lon": 37.5827383882787
},
"transit": false
},
{
"original_point": {
"lat": 55.76508145085716,
"lon": 37.65655466197384
},
"projected_point": {
"lat": 55.76508145085716,
"lon": 37.65655466197384
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

Построение маршрутов

Альтернативный маршрут

Пример построения маршрутов для автомобиля: основного (синий) и альтернативного (зелёный):


Чтобы в дополнение к основному маршруту построить альтернативный, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами маршрута:

  • output: detailed — полный формат выдачи результатов.

  • alternative — количество альтернативных маршрутов:

    • Для маршрутов на автомобиле, такси или мотоцикле — до 10.
    • Для остальных маршрутов — до 2.

Пример запроса:

curl --location --request POST 'http://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
}
],
"output": "detailed",
"alternative": 2,
"locale": "ru"
}'

Список маршрутов появится в поле result. Первый маршрут в списке является основным (наиболее оптимальным). Альтернативные маршруты могут значительно отличаться от основного по геометрии и времени в пути.

Пример ответа:

response.json
{
"message": null,
"query": {
"alternative": 2,
"locale": "ru",
"output": "detailed",
"points": [
{
"lat": 55.775364,
"lon": 37.582591,
"type": "stop"
},
{
"lat": 55.765036,
"lon": 37.656625,
"type": "stop"
}
]
},
"result": [
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "7476350594196152345",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "11469484710033878982",
"outcoming_path": {
"distance": 30,
"duration": 10,
"geometry": [
{
"color": "normal",
"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": "17148453564735122727",
"outcoming_path": {
"distance": 164,
"duration": 58,
"geometry": [
{
"color": "slow",
"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": "normal",
"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": "2075746739989757883",
"outcoming_path": {
"distance": 2824,
"duration": 520,
"geometry": [
{
"color": "normal",
"length": 491,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586158 55.775747, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126)",
"style": "normal"
},
{
"color": "fast",
"length": 152,
"selection": "LINESTRING(37.590635 55.773126, 37.592026 55.772311, 37.592333 55.772132)",
"style": "normal"
},
{
"color": "normal",
"length": 158,
"selection": "LINESTRING(37.592333 55.772132, 37.594081 55.771108)",
"style": "normal"
},
{
"color": "fast",
"length": 358,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 97,
"selection": "LINESTRING(37.598026 55.768722, 37.599143 55.768109)",
"style": "normal"
},
{
"color": "fast",
"length": 1116,
"selection": "LINESTRING(37.599143 55.768109, 37.599686 55.767811, 37.600043 55.767616, 37.600420 55.767408, 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, 37.605755 55.764468, 37.605892 55.764379, 37.605943 55.764346, 37.606052 55.764261, 37.606330 55.764042, 37.607409 55.763195, 37.608277 55.762513, 37.608419 55.762402, 37.608663 55.762210, 37.608964 55.761973, 37.609189 55.761797, 37.609668 55.761364, 37.610581 55.760402)",
"style": "normal"
},
{
"color": "normal",
"length": 452,
"selection": "LINESTRING(37.610581 55.760402, 37.611732 55.759187, 37.611881 55.759030, 37.612156 55.758740, 37.612480 55.758397, 37.612745 55.758176, 37.613042 55.757957, 37.613061 55.757943, 37.613220 55.757842, 37.613439 55.757702, 37.614188 55.757327, 37.614359 55.757241, 37.614424 55.757209, 37.614692 55.757075)",
"style": "normal"
}
],
"names": ["1-я Тверская-Ямская"]
},
"outcoming_path_comment": "2.8 км прямо",
"turn_angle": 91,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Охотный Ряд",
"icon": "crossroad_left",
"id": "14284951730462576912",
"outcoming_path": {
"distance": 711,
"duration": 162,
"geometry": [
{
"color": "normal",
"length": 25,
"selection": "LINESTRING(37.614692 55.757075, 37.614880 55.756984, 37.615022 55.756943)",
"style": "normal"
},
{
"color": "fast",
"length": 62,
"selection": "LINESTRING(37.615022 55.756943, 37.615076 55.756942, 37.615157 55.756952, 37.615216 55.756962, 37.615276 55.756977, 37.615375 55.757008, 37.615474 55.757045, 37.615885 55.757209)",
"style": "normal"
},
{
"color": "normal",
"length": 378,
"selection": "LINESTRING(37.615885 55.757209, 37.616082 55.757333, 37.617164 55.758021, 37.617490 55.758218, 37.617688 55.758337, 37.617914 55.758435, 37.618154 55.758495, 37.618405 55.758539, 37.618690 55.758588, 37.619878 55.758794, 37.620053 55.758825, 37.620388 55.758883, 37.620854 55.758964)",
"style": "normal"
},
{
"color": "normal",
"length": 246,
"selection": "LINESTRING(37.620854 55.758964, 37.621520 55.759079, 37.622236 55.759179, 37.622780 55.759255, 37.623755 55.759390, 37.624658 55.759515)",
"style": "normal"
}
],
"names": ["Охотный Ряд"]
},
"outcoming_path_comment": "700 м прямо",
"turn_angle": -60,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Держитесь правее на ул. Новая площадь",
"icon": "crossroad_keep_right",
"id": "12642886274867032483",
"outcoming_path": {
"distance": 477,
"duration": 148,
"geometry": [
{
"color": "normal",
"length": 477,
"selection": "LINESTRING(37.624658 55.759515, 37.625049 55.759532, 37.625210 55.759535, 37.625387 55.759532, 37.625526 55.759521, 37.625663 55.759504, 37.625747 55.759487, 37.625791 55.759478, 37.625904 55.759444, 37.625994 55.759402, 37.626075 55.759353, 37.626542 55.759020, 37.626797 55.758837, 37.627134 55.758596, 37.627309 55.758471, 37.627604 55.758260, 37.627872 55.758068, 37.629510 55.756897, 37.629731 55.756739, 37.629801 55.756689, 37.629850 55.756654, 37.629895 55.756632)",
"style": "normal"
}
],
"names": ["Новая площадь"]
},
"outcoming_path_comment": "500 м прямо",
"turn_angle": 10,
"turn_direction": "keep_right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Ильинские Ворота площадь",
"icon": "crossroad_left",
"id": "3539762965641463791",
"outcoming_path": {
"distance": 1861,
"duration": 462,
"geometry": [
{
"color": "normal",
"length": 19,
"selection": "LINESTRING(37.629895 55.756632, 37.629978 55.756619, 37.630038 55.756617, 37.630106 55.756623, 37.630198 55.756645)",
"style": "normal"
},
{
"color": "fast",
"length": 752,
"selection": "LINESTRING(37.630198 55.756645, 37.630971 55.756953, 37.631358 55.757108, 37.631510 55.757168, 37.631622 55.757199, 37.631670 55.757213, 37.631827 55.757252, 37.631923 55.757272, 37.632087 55.757308, 37.632317 55.757358, 37.632359 55.757366, 37.632614 55.757414, 37.632704 55.757432, 37.633055 55.757485, 37.633207 55.757503, 37.633488 55.757537, 37.633724 55.757566, 37.633783 55.757573, 37.634140 55.757600, 37.634746 55.757634, 37.635261 55.757663, 37.635590 55.757681, 37.635743 55.757690, 37.636312 55.757722, 37.636337 55.757724, 37.636550 55.757739, 37.636752 55.757770, 37.636968 55.757820, 37.637080 55.757845, 37.637735 55.757996, 37.638128 55.758086, 37.638437 55.758157, 37.638642 55.758204, 37.639772 55.758464, 37.639913 55.758496, 37.640505 55.758599, 37.640845 55.758658, 37.641213 55.758722, 37.641348 55.758745, 37.641594 55.758788, 37.641693 55.758805)",
"style": "normal"
},
{
"color": "normal",
"length": 232,
"selection": "LINESTRING(37.641693 55.758805, 37.642116 55.758876, 37.643212 55.759058, 37.643303 55.759069, 37.643928 55.759139, 37.643976 55.759145, 37.644427 55.759197, 37.645136 55.759277, 37.645355 55.759302)",
"style": "normal"
},
{
"color": "fast",
"length": 72,
"selection": "LINESTRING(37.645355 55.759302, 37.646107 55.759386, 37.646278 55.759405, 37.646352 55.759417, 37.646405 55.759425, 37.646523 55.759444)",
"style": "normal"
},
{
"color": "normal",
"length": 35,
"selection": "LINESTRING(37.646523 55.759444, 37.646640 55.759462, 37.647064 55.759528)",
"style": "normal"
},
{
"color": "fast",
"length": 751,
"selection": "LINESTRING(37.647064 55.759528, 37.647326 55.759581, 37.647435 55.759604, 37.647605 55.759639, 37.647686 55.759656, 37.647877 55.759695, 37.648082 55.759738, 37.648147 55.759758, 37.648266 55.759794, 37.648531 55.759893, 37.648620 55.759926, 37.648975 55.760098, 37.649122 55.760169, 37.649457 55.760331, 37.649506 55.760360, 37.649573 55.760399, 37.649617 55.760428, 37.649720 55.760498, 37.649886 55.760610, 37.649948 55.760653, 37.650400 55.760959, 37.650498 55.761026, 37.650552 55.761063, 37.650625 55.761112, 37.650686 55.761152, 37.650723 55.761176, 37.651595 55.761747, 37.651709 55.761822, 37.651900 55.761947, 37.651980 55.761999, 37.652258 55.762182, 37.652370 55.762250, 37.652487 55.762314, 37.652695 55.762420, 37.652816 55.762482, 37.652856 55.762503, 37.653203 55.762681, 37.653603 55.762887, 37.653911 55.763044, 37.654023 55.763099, 37.654131 55.763152, 37.654208 55.763189, 37.654436 55.763298, 37.654489 55.763323, 37.654911 55.763513, 37.655096 55.763596, 37.655188 55.763638, 37.655250 55.763663, 37.655523 55.763774, 37.655742 55.763856, 37.655887 55.763910, 37.655978 55.763942, 37.656208 55.764020)",
"style": "normal"
}
],
"names": ["Ильинские Ворота площадь"]
},
"outcoming_path_comment": "1.9 км прямо",
"turn_angle": -84,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Садовая-Черногрязская",
"icon": "crossroad_left",
"id": "1872570573049227675",
"outcoming_path": {
"distance": 98,
"duration": 20,
"geometry": [
{
"color": "normal",
"length": 98,
"selection": "LINESTRING(37.656208 55.764020, 37.656416 55.764092, 37.656235 55.764223, 37.656076 55.764339, 37.655591 55.764691)",
"style": "normal"
}
],
"names": ["Садовая-Черногрязская"]
},
"outcoming_path_comment": "100 м прямо",
"turn_angle": -97,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "11789852217478929598",
"outcoming_path": {
"distance": 54,
"duration": 18,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "16597950500102518909",
"outcoming_path": {
"distance": 36,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m9/carrouting/1752677167.820776",
"total_distance": 6255,
"total_duration": 1411,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "6.3"
},
"ui_total_duration": "23 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "1814408175437758850",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "5969287241209199365",
"outcoming_path": {
"distance": 30,
"duration": 10,
"geometry": [
{
"color": "normal",
"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": "10457309824166287938",
"outcoming_path": {
"distance": 406,
"duration": 131,
"geometry": [
{
"color": "slow",
"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": "normal",
"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": "slow",
"length": 145,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 97,
"selection": "LINESTRING(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": "4579269014004487438",
"outcoming_path": {
"distance": 988,
"duration": 260,
"geometry": [
{
"color": "fast",
"length": 805,
"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.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": "normal",
"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": ["Александра Невского"]
},
"outcoming_path_comment": "1 км прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Оружейный переулок",
"icon": "crossroad_right",
"id": "12182568434776493536",
"outcoming_path": {
"distance": 89,
"duration": 26,
"geometry": [
{
"color": "normal",
"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": "2696289922641352237",
"outcoming_path": {
"distance": 112,
"duration": 29,
"geometry": [
{
"color": "normal",
"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": "18268389482474467749",
"outcoming_path": {
"distance": 4042,
"duration": 989,
"geometry": [
{
"color": "fast",
"length": 271,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 794,
"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.609050 55.773088, 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": "fast",
"length": 244,
"selection": "LINESTRING(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": 367,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 533,
"selection": "LINESTRING(37.629057 55.773153, 37.630300 55.772978, 37.630537 55.772946, 37.631810 55.772768, 37.631859 55.772761, 37.632283 55.772702, 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": "slow-jams",
"length": 373,
"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)",
"style": "normal"
},
{
"color": "slow",
"length": 69,
"selection": "LINESTRING(37.642720 55.770474, 37.643276 55.770304, 37.643525 55.770234, 37.643708 55.770178)",
"style": "normal"
},
{
"color": "normal",
"length": 284,
"selection": "LINESTRING(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)",
"style": "normal"
},
{
"color": "fast",
"length": 644,
"selection": "LINESTRING(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": "5907064279386894194",
"outcoming_path": {
"distance": 71,
"duration": 12,
"geometry": [
{
"color": "normal",
"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": "1996733791456574546",
"outcoming_path": {
"distance": 54,
"duration": 18,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "4248178141877895831",
"outcoming_path": {
"distance": 36,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m9/carrouting/1752677167.822275",
"total_distance": 5828,
"total_duration": 1487,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "5.8"
},
"ui_total_duration": "24 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.582590 55.775363, 37.583086 55.775486)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.656748 55.764924, 37.656625 55.765036)"
}
},
"filter_road_types": ["highway"],
"id": "8227637702899644715",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "7847182506954784994",
"outcoming_path": {
"distance": 30,
"duration": 10,
"geometry": [
{
"color": "normal",
"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": "10310317470261942291",
"outcoming_path": {
"distance": 164,
"duration": 59,
"geometry": [
{
"color": "slow",
"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": "normal",
"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": "7170228616489691567",
"outcoming_path": {
"distance": 2525,
"duration": 436,
"geometry": [
{
"color": "normal",
"length": 491,
"selection": "LINESTRING(37.585154 55.776303, 37.585445 55.776157, 37.585492 55.776131, 37.585658 55.776039, 37.586158 55.775747, 37.588010 55.774663, 37.588280 55.774505, 37.590369 55.773281, 37.590635 55.773126)",
"style": "normal"
},
{
"color": "fast",
"length": 152,
"selection": "LINESTRING(37.590635 55.773126, 37.592026 55.772311, 37.592333 55.772132)",
"style": "normal"
},
{
"color": "normal",
"length": 158,
"selection": "LINESTRING(37.592333 55.772132, 37.594081 55.771108)",
"style": "normal"
},
{
"color": "fast",
"length": 358,
"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)",
"style": "normal"
},
{
"color": "normal",
"length": 97,
"selection": "LINESTRING(37.598026 55.768722, 37.599143 55.768109)",
"style": "normal"
},
{
"color": "fast",
"length": 1116,
"selection": "LINESTRING(37.599143 55.768109, 37.599686 55.767811, 37.600043 55.767616, 37.600420 55.767408, 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, 37.605755 55.764468, 37.605892 55.764379, 37.605943 55.764346, 37.606052 55.764261, 37.606330 55.764042, 37.607409 55.763195, 37.608277 55.762513, 37.608419 55.762402, 37.608663 55.762210, 37.608964 55.761973, 37.609189 55.761797, 37.609668 55.761364, 37.610581 55.760402)",
"style": "normal"
},
{
"color": "normal",
"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": "10084241964402908825",
"outcoming_path": {
"distance": 728,
"duration": 130,
"geometry": [
{
"color": "normal",
"length": 13,
"selection": "LINESTRING(37.611732 55.759187, 37.611902 55.759266)",
"style": "normal"
},
{
"color": "fast",
"length": 428,
"selection": "LINESTRING(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)",
"style": "normal"
},
{
"color": "normal",
"length": 287,
"selection": "LINESTRING(37.608430 55.762600, 37.606823 55.763860, 37.606117 55.764416, 37.605917 55.764547, 37.605693 55.764675)",
"style": "normal"
}
],
"names": ["Тверская"]
},
"outcoming_path_comment": "700 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Страстной бульвар",
"icon": "crossroad_right",
"id": "2624369006602221165",
"outcoming_path": {
"distance": 2094,
"duration": 594,
"geometry": [
{
"color": "fast",
"length": 1115,
"selection": "LINESTRING(37.605693 55.764675, 37.605769 55.764738, 37.605861 55.764802, 37.605945 55.764846, 37.606503 55.765085, 37.607147 55.765361, 37.607262 55.765410, 37.607716 55.765604, 37.607769 55.765627, 37.607956 55.765707, 37.608425 55.765907, 37.608673 55.766013, 37.609301 55.766282, 37.609661 55.766383, 37.609852 55.766436, 37.609937 55.766460, 37.610017 55.766493, 37.610551 55.766719, 37.611120 55.766959, 37.611330 55.767047, 37.612060 55.767355, 37.612409 55.767502, 37.613154 55.767816, 37.613469 55.767950, 37.613562 55.767976, 37.613640 55.767992, 37.613696 55.767999, 37.613763 55.768002, 37.613804 55.768001, 37.614706 55.767948, 37.614881 55.767938, 37.615199 55.767919, 37.615444 55.767898, 37.615638 55.767875, 37.615703 55.767867, 37.615953 55.767828, 37.616208 55.767789, 37.616612 55.767729, 37.616787 55.767702, 37.618195 55.767490, 37.618466 55.767449, 37.618830 55.767394, 37.619466 55.767298, 37.619907 55.767231, 37.620090 55.767203, 37.620139 55.767196, 37.620745 55.767104, 37.620823 55.767092, 37.620942 55.767070, 37.621246 55.767014, 37.621435 55.766979, 37.621528 55.766962)",
"style": "normal"
},
{
"color": "normal",
"length": 93,
"selection": "LINESTRING(37.621528 55.766962, 37.621877 55.766897, 37.621979 55.766879, 37.622796 55.766728, 37.622958 55.766697, 37.622977 55.766694)",
"style": "normal"
},
{
"color": "fast",
"length": 529,
"selection": "LINESTRING(37.622977 55.766694, 37.623256 55.766645, 37.623514 55.766600, 37.623609 55.766590, 37.623769 55.766572, 37.623889 55.766559, 37.624879 55.766494, 37.626716 55.766372, 37.626794 55.766367, 37.627682 55.766377, 37.627973 55.766381, 37.628518 55.766387, 37.629634 55.766399, 37.630110 55.766404, 37.630208 55.766405, 37.631132 55.766416, 37.631180 55.766416, 37.631249 55.766412, 37.631332 55.766400, 37.631393 55.766387, 37.631450 55.766374)",
"style": "normal"
},
{
"color": "normal",
"length": 261,
"selection": "LINESTRING(37.631450 55.766374, 37.631532 55.766360, 37.631557 55.766359, 37.631838 55.766350, 37.632422 55.766330, 37.632592 55.766325, 37.633115 55.766308, 37.633617 55.766292, 37.633822 55.766280, 37.633888 55.766274, 37.634016 55.766263, 37.634536 55.766194, 37.634626 55.766182, 37.635135 55.766115, 37.635268 55.766088, 37.635391 55.766050, 37.635612 55.765976)",
"style": "normal"
},
{
"color": "fast",
"length": 32,
"selection": "LINESTRING(37.635612 55.765976, 37.635805 55.765913, 37.635920 55.765874, 37.636061 55.765828)",
"style": "normal"
},
{
"color": "normal",
"length": 64,
"selection": "LINESTRING(37.636061 55.765828, 37.636109 55.765806, 37.636162 55.765782, 37.636569 55.765593, 37.636831 55.765472, 37.636866 55.765456)",
"style": "normal"
}
],
"names": ["Страстной бульвар"]
},
"outcoming_path_comment": "2.1 км прямо",
"turn_angle": 80,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот",
"icon": "turn_over_right_hand",
"id": "7428026027741094845",
"outcoming_path": {
"distance": 129,
"duration": 62,
"geometry": [
{
"color": "normal",
"length": 72,
"selection": "LINESTRING(37.636866 55.765456, 37.637178 55.765382, 37.637194 55.765382, 37.637301 55.765378, 37.637313 55.765380, 37.637399 55.765392, 37.637485 55.765428, 37.637541 55.765473, 37.637558 55.765514, 37.637550 55.765557, 37.637517 55.765612, 37.637438 55.765677)",
"style": "normal"
},
{
"color": "fast",
"length": 57,
"selection": "LINESTRING(37.637438 55.765677, 37.636914 55.765904, 37.636701 55.765997)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -180,
"turn_direction": "uturn_left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Академика Сахарова проспект",
"icon": "crossroad_right",
"id": "5660464538317952745",
"outcoming_path": {
"distance": 630,
"duration": 135,
"geometry": [
{
"color": "fast",
"length": 337,
"selection": "LINESTRING(37.636701 55.765997, 37.637164 55.766265, 37.637285 55.766336, 37.637481 55.766450, 37.638228 55.766884, 37.638566 55.767081, 37.639057 55.767366, 37.639308 55.767513, 37.639509 55.767629, 37.640107 55.767977, 37.640308 55.768094, 37.640423 55.768160, 37.640500 55.768206)",
"style": "normal"
},
{
"color": "normal",
"length": 58,
"selection": "LINESTRING(37.640500 55.768206, 37.640699 55.768321, 37.640819 55.768391, 37.641172 55.768596)",
"style": "normal"
},
{
"color": "fast",
"length": 235,
"selection": "LINESTRING(37.641172 55.768596, 37.641262 55.768649, 37.642115 55.769144, 37.642572 55.769411, 37.642665 55.769465, 37.642921 55.769623, 37.643137 55.769765, 37.643178 55.769793, 37.643537 55.770052, 37.643708 55.770178)",
"style": "normal"
}
],
"names": ["Академика Сахарова проспект"]
},
"outcoming_path_comment": "600 м прямо",
"turn_angle": 96,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Садовая-Спасская",
"icon": "crossroad_right",
"id": "1291709219181460531",
"outcoming_path": {
"distance": 1021,
"duration": 148,
"geometry": [
{
"color": "normal",
"length": 284,
"selection": "LINESTRING(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)",
"style": "normal"
},
{
"color": "fast",
"length": 644,
"selection": "LINESTRING(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": "1 км прямо",
"turn_angle": 82,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Разворот на ул. Садовая-Черногрязская",
"icon": "turn_over_right_hand",
"id": "782852574368093421",
"outcoming_path": {
"distance": 71,
"duration": 13,
"geometry": [
{
"color": "normal",
"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": "13451417659131504300",
"outcoming_path": {
"distance": 54,
"duration": 19,
"geometry": [
{
"color": "ignore",
"length": 21,
"selection": "LINESTRING(37.655591 55.764691, 37.655782 55.764778, 37.655865 55.764817)",
"style": "living_zone"
},
{
"color": "ignore",
"length": 16,
"selection": "LINESTRING(37.655865 55.764817, 37.656064 55.764909)",
"style": "archway"
},
{
"color": "ignore",
"length": 17,
"selection": "LINESTRING(37.656064 55.764909, 37.656228 55.764957, 37.656303 55.764992)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": 89,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "10147370862110426089",
"outcoming_path": {
"distance": 36,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 36,
"selection": "LINESTRING(37.656303 55.764992, 37.656485 55.764865, 37.656510 55.764857, 37.656538 55.764857, 37.656572 55.764863, 37.656748 55.764924)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "18249790006739505861",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"route_id": "moscow-cr-back.m9/carrouting/1752677167.823557",
"total_distance": 7482,
"total_duration": 1617,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "7.5"
},
"ui_total_duration": "26 мин",
"waypoints": [
{
"original_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"projected_point": {
"lat": 55.77548696452943,
"lon": 37.58308657528283
},
"transit": false
},
{
"original_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"projected_point": {
"lat": 55.76492488357115,
"lon": 37.65674806925451
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

Несколько маршрутов

Вы можете построить маршруты для нескольких пар точек за один запрос и получить длину и время в пути каждого маршрута. При таком запросе оплачивается расчёт маршрута для каждой пары точек.

Отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами маршрута:

  • points (обязательный параметр) — набор координат точек для маршрута.

    Для каждого маршрута необходимо указать только две точки. Промежуточные точки не поддерживаются.

  • transport — способ передвижения:

    • driving — на автомобиле;
    • taxi — на такси;
    • bicycle — на велосипеде;
    • scooter — на самокате;
    • motorcycle — на мотоцикле;
    • emergency — для экстренных служб;
    • truck — на грузовом транспорте;
    • walking — пешком.

    Подробнее об особенностях каждого типа маршрутов см. в разделе Способы передвижения.

  • output — формат выдачи результата:

    • summary — упрощенная выдача, в ответе только время и длина маршрута;
    • detailed — полная выдача с геометрией маршрута.

Пример запроса:

curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
[
{
"lon": 82.93057,
"lat": 54.943207
},
{
"lon": 82.945039,
"lat": 55.033879
}
],
[
{
"lon": 82.945039,
"lat": 55.033879
},
{
"lon": 82.945039,
"lat": 55.033879
}
]
]
"transport": "driving",
"output": "summary",
"locale": "ru"
}'

Пример ответа:

response.json
[
{
"distance": 18292,
"duration": 2658,
"lat1": 54.943207,
"lat2": 55.033879,
"lon1": 82.93057,
"lon2": 82.94503899999999,
"reliability": 1.0,
"route": "",
"status": "OK"
},
{
"distance": 0,
"duration": 0,
"lat1": 55.033879,
"lat2": 55.033879,
"lon1": 82.94503899999999,
"lon2": 82.94503899999999,
"reliability": 1.0,
"route": "",
"status": "OK"
}
]

Кратчайший по времени/расстоянию

По умолчанию для любого типа транспорта строится кратчайший по времени маршрут с учётом пробок. Вы также можете построить кратчайший по расстоянию маршрут: в этом случае пробки учитываться не будут, и маршрут может оказаться неоптимальным по времени.

Пример построения кратчайших по времени и расстоянию маршрутов для автомобиля:


Чтобы явно задать тип построения маршрута, отправьте POST-запрос на /routing/7.0.0/global с параметром route_mode с одним из следующих значений:

  • fastest — кратчайший по времени (значение по умолчанию);
  • shortest — кратчайший по расстоянию.

Пример запроса:

curl --location --request POST 'http://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
}
],
"route_mode": "fastest",
"locale": "ru"
}'

Учёт пробок

По умолчанию при расчёте маршрута используются данные о пробках, актуальные на момент отправки запроса. Вы можете также построить маршрут на определённую дату и время: в этом случае будут использованы статистические данные о пробках, чтобы предсказать длительность маршрута.

Пример построения автомобильного маршрута с учётом статистических пробок (на субботу 12 июля 2025 г. 02:00:00 GMT+3) и текущих пробок:


Чтобы рассчитать маршрут на нужную дату, отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами маршрута:

  • utc — дата и время в формате Unix.
  • traffic_mode: statistics — построение маршрута с учётом статистических данных о пробках на указанное время.

Пример запроса:

curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"type": "stop",
"lon": 37.558563,
"lat": 55.772824
},
{
"type": "stop",
"lon": 37.677533,
"lat": 55.711569
}
],
"utc": 1752274800,
"traffic_mode": "statistics",
"locale": "ru"
}'

Учёт дорожных перекрытий

По умолчанию при расчёте маршрута используются данные о дорожных перекрытиях, актуальные на момент отправки запроса, и перекрытые участки дорог избегаются. Вы можете отключить эту возможность.

Чтобы при построении маршрута могли использоваться перекрытые дороги, отправьте POST-запрос на /routing/7.0.0/global с параметром allow_locked_roads со значением true.

Пример запроса:

curl --location --request POST 'http://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
}
],
"allow_locked_roads": true,
"locale": "ru"
}'

Специальные возможности

Направление движения

При построении маршрутов для транспорта вы можете указать текущее направление движения (или желаемое направление движения при старте) для начальной или конечной точки. Это позволит минимизировать количество перестроений: например, если транспортное средство движется на север (или остановилось на стороне дороги, где возможно движение только на север), маршрут будет построен так, чтобы начало движения соответствовало направлению на север. Эта возможность особенно актуальна в городских условиях, когда GPS может неточно определить положение транспортного средства на многополосной дороге.

Пример построения автомобильного маршрута с разным направлением движения для начальной точки:


Чтобы указать вектор направления движения, добавьте к начальной или конечной точке маршрута параметр azimuth со значением от 0 до 360 (градусов), где 0 — направление на север и отправьте POST-запрос на /routing/7.0.0/global.

Пример запроса:

curl --location --request POST 'http://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,
"azimuth": 100
},
{
"type": "stop",
"lon": 37.656625,
"lat": 55.765036
}
],
"locale": "ru"
}'

При построении маршрутов для транспортного средства, которое уже находится в движении, может возникнуть другая проблема: на момент расчёта маршрут является оптимальным, но на момент реального начала движения он уже неактуален (оптимальная точка перехода на маршрут уже позади). Пример работы системы такси и распределения заказов между водителями: система рассчитала, что чтобы взять заказ, водитель такси должен повернуть направо через 100 метров, но пока заказ обрабатывался, водитель проехал нужный поворот, и новый маршрут стал длиннее и менее выгодным.

Чтобы решить эту проблему, вы можете задать расстояние от начальной точки, на протяжении которого транспортное средство не будет менять основного направления движения. Под основным направлением движения подразумевается наиболее вероятный путь водителя (не обязательно по прямой). Добавьте к начальной точке маршрута параметр distance_direction со значением от 0 до 10000 (метров).

Пример запроса:

curl --location --request POST 'http://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,
"distance_direction": 500
},
{
"type": "stop",
"lon": 37.656625,
"lat": 55.765036
}
],
"locale": "ru"
}'

В ответе для каждого маршрута добавится поле reliability со значением от 0.0 до 1.0, которое указывает на вероятность того, что рассчитанный маршрут будет соответствовать реальному пути водителя. Вероятность 1.0 означает, что рассчитанный маршрут будет оптимальным для водителя.

Маршрут внутри зданий

Пример построения маршрута внутри здания:


Чтобы построить маршрут внутри зданий (например, до организации в торговом центре), отправьте POST-запрос на /routing/7.0.0/global со следующими параметрами:

  • points — координаты для маршрута:

    • lon (обязательный параметр) — градусы восточной долготы.
    • lat (обязательный параметр) — градусы северной широты.
    • type: walking — начальная/конечная точка маршрута.
    • object_id — идентификатор здания или организации, к которой будет привязана точка. Вы можете получить это значение из справочника 2ГИС с помощью Places API.
    • floor_id — идентификатор этажа здания. Вы можете получить это значение из справочника 2ГИС с помощью Places API.

    Хотя бы одна из конечных точек маршрута должна находиться внутри здания или быть привязана к организации с помощью параметра object_id.

  • transport: walking — пешеходный маршрут.

  • params — дополнительные параметры:

    • pedestrian — параметры пешеходного маршрута:

      • use_indoor — построить маршрут внутри зданий;
      • use_instructions — выдать инструкции по навигации для пешеходных маршрутов.

Пример запроса:

curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"lon": 37.624836,
"lat": 55.759832,
"type": "walking",
"object_id": "70030076312136070",
"floor_id": "4504694860731166"
},
{
"lon": 37.624984,
"lat": 55.760219,
"type": "walking",
"object_id": "70000001058655912",
"floor_id": "4504694860733246"
}
],
"transport": "walking",
"params": {
"pedestrian": {
"use_indoor": true,
"use_instructions": true
}
},
"locale": "ru"
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"locale": "ru",
"params": {
"pedestrian": {
"use_indoor": true,
"use_instructions": true
}
},
"points": [
{
"floor_id": "4504694860731166",
"lat": 55.759832,
"lon": 37.624836,
"object_id": "70030076312136070",
"type": "walking"
},
{
"floor_id": "4504694860733246",
"lat": 55.760219,
"lon": 37.624984,
"object_id": "70000001058655912",
"type": "walking"
}
],
"transport": "walking"
},
"result": [
{
"algorithm": "кратчайший",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.624835 55.759832, 37.624836 55.759832)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.624947 55.760095, 37.624947 55.760096, 37.624984 55.760218)"
}
},
"id": "5643336744465906178",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "8314411793580318127",
"outcoming_path": {
"distance": 16,
"duration": 11,
"floor_from": "4504694860731166",
"floor_to": "4504694860731166",
"geometry": [
{
"length": 17,
"selection": "LINESTRING(37.624836 55.759832, 37.624797 55.759923, 37.624810 55.759984)",
"style": "indoor",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "20 м прямо",
"type": "pedestrian_begin"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "12576290874110980358",
"outcoming_path": {
"distance": 46,
"duration": 31,
"floor_from": "4504694860731166",
"floor_to": "4504694860731166",
"geometry": [
{
"length": 47,
"selection": "LINESTRING(37.624810 55.759984, 37.624634 55.759996, 37.624539 55.760002, 37.624280 55.760019, 37.624306 55.760148)",
"style": "indoor",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "15192561963213118306",
"outcoming_path": {
"distance": 13,
"duration": 9,
"floor_from": "4504694860731166",
"floor_to": "4504694860731166",
"geometry": [
{
"length": 13,
"selection": "LINESTRING(37.624306 55.760148, 37.624519 55.760135)",
"style": "indoor",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "10 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"comment": "на эскалаторе до этажа 2",
"floor_from": "4504694860731166",
"floor_from_name": "1",
"floor_to": "4504694860733246",
"floor_to_name": "2",
"icon": "indoor_floor_change_escalator",
"id": "16092885881736972623",
"outcoming_path": {
"distance": 12,
"duration": 8,
"floor_from": "4504694860731166",
"floor_to": "4504694860733246",
"geometry": [
{
"length": 8,
"selection": "LINESTRING(37.624519 55.760135, 37.624652 55.760126)",
"style": "indoor",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "10 м прямо",
"type": "indoor_floor_change"
},
{
"attribute": "empty",
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "10288714074464458147",
"outcoming_path": {
"distance": 33,
"duration": 22,
"floor_from": "4504694860733246",
"floor_to": "4504694860733246",
"geometry": [
{
"length": 33,
"selection": "LINESTRING(37.624652 55.760126, 37.624651 55.760122, 37.624660 55.760121, 37.624654 55.760090, 37.624647 55.760090, 37.624644 55.760087, 37.624627 55.760000, 37.624925 55.759981)",
"style": "indoor",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "30 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "pedestrian_crossroad"
},
{
"attribute": "empty",
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "4454167169481163335",
"outcoming_path": {
"distance": 12,
"duration": 8,
"floor_from": "4504694860733246",
"floor_to": "4504694860733246",
"geometry": [
{
"length": 12,
"selection": "LINESTRING(37.624925 55.759981, 37.624942 55.760068, 37.624947 55.760095)",
"style": "indoor",
"zlevel": "zlevel-normal"
}
],
"names": []
},
"outcoming_path_comment": "10 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "pedestrian_crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "12870670397764385079",
"outcoming_path_comment": "Вы на месте!",
"type": "pedestrian_end"
}
],
"reliability": 0.0,
"route_id": "moscow-pd-back.m9/pedestrianrouting/1752759405.694373",
"total_distance": 135,
"total_duration": 90,
"type": "pedestrianrouting",
"ui_total_distance": {
"unit": "м",
"value": "150"
},
"ui_total_duration": "1 мин",
"waypoints": [
{
"original_point": {
"lat": 55.75983201037391,
"lon": 37.62483658659604
},
"projected_point": {
"lat": 55.75983201037391,
"lon": 37.62483658659604
},
"transit": false
},
{
"original_point": {
"lat": 55.76009595486535,
"lon": 37.62494752853362
},
"projected_point": {
"lat": 55.76009595486535,
"lon": 37.62494752853362
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}

Избегание типов дорог

Чтобы избегать дороги определённых типов, используйте параметр filters с одним или несколькими значениями:

  • dirt_road — грунтовые дороги.
  • toll_road — платные дороги.
  • ferry — паромные переправы.
  • highway — магистральные дороги (магистральные улицы города, междугородние трассы и федеральные трассы). Актуально для маршрутов на велосипеде, на самокате и пешком.
  • ban_car_road — автомобильные дороги. Актуально для маршрутов на велосипеде и на самокате.
  • ban_stairway — лестницы без пандусов. Актуально для маршрутов на велосипеде, на самокате и пешком.

Пример запроса:

curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"points": [
{
"type": "walking",
"lon": 37.582591,
"lat": 55.775364
},
{
"type": "walking",
"lon": 37.656625,
"lat": 55.765036
}
],
"transport": "walking",
"params": {
"pedestrian": {
"use_instructions": true
}
},
"filters": [
"highway",
"ban_stairway"
],
"locale": "ru",
}'

Исключение определённых областей

Чтобы исключить определённую область, отправьте POST-запрос на /routing/7.0.0/global со следующими значениями в параметре exclude:

  • points — координаты исключаемой области (массив точек):

    • lon — градусы восточной долготы;
    • lat — градусы северной широты.
  • type — форма исключаемой области:

    • point — круг с радиусом, равным extent (points — это центр окружности);
    • polyline — ломаная линия с шириной, равной extent (points — вершины линии);
    • polygon — многоугольник (points — вершины многоугольника).
  • extent — размер исключаемой области в метрах.

  • severity — как строго нужно избегать заданную область:

    • soft — избегать по возможности;
    • hard — избегать всегда.

Максимальное количество исключаемых областей — 25.

Пример запроса:

curl --location --request POST 'http://routing.api.2gis.com/routing/7.0.0/global?key=API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"transport": "driving",
"points": [
{
"lon": 37.421866,
"lat": 55.849971,
"type": "stop"
},
{
"lon": 37.442827,
"lat": 55.85757,
"type": "stop"
}
],
"filters": "toll_road",
"locale": "ru",
"exclude": [
{
"points": [
{
"lon": 37.438486,
"lat": 55.851578
}
],
"type": "point",
"extent": 200,
"severity": "hard"
}
]
}'

Пример ответа:

response.json
{
"message": null,
"query": {
"exclude": [
{
"extent": 200,
"points": [
{
"lat": 55.851578,
"lon": 37.438486
}
],
"severity": "hard",
"type": "point"
}
],
"filters": "toll_road",
"locale": "ru",
"points": [
{
"lat": 55.849971,
"lon": 37.421866,
"type": "stop"
},
{
"lat": 55.85757,
"lon": 37.442827,
"type": "stop"
}
],
"transport": "driving"
},
"result": [
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.421866 55.849970, 37.421647 55.849947)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.442765 55.857746, 37.442827 55.857569)"
}
},
"id": "4544408110229314541",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "10792982768545552506",
"outcoming_path": {
"distance": 45,
"duration": 13,
"geometry": [
{
"color": "ignore",
"length": 45,
"selection": "LINESTRING(37.421647 55.849947, 37.421572 55.850169, 37.421511 55.850347)",
"style": "living_zone"
}
],
"names": ["Туристская"]
},
"outcoming_path_comment": "50 м прямо",
"type": "begin"
},
{
"comment": "Поворот направо на ул. Туристская",
"icon": "crossroad_right",
"id": "7890159412351261556",
"outcoming_path": {
"distance": 64,
"duration": 18,
"geometry": [
{
"color": "ignore",
"length": 64,
"selection": "LINESTRING(37.421511 55.850347, 37.422306 55.850432, 37.422537 55.850457)",
"style": "living_zone"
}
],
"names": ["Туристская"]
},
"outcoming_path_comment": "60 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Туристская",
"icon": "crossroad_left",
"id": "6314705001868819581",
"outcoming_path": {
"distance": 831,
"duration": 113,
"geometry": [
{
"color": "fast",
"length": 7,
"selection": "LINESTRING(37.422537 55.850457, 37.422646 55.850469)",
"style": "normal"
},
{
"color": "normal",
"length": 384,
"selection": "LINESTRING(37.422646 55.850469, 37.422304 55.851472, 37.422264 55.851592, 37.422216 55.851732, 37.422162 55.851890, 37.421850 55.852806, 37.421699 55.853246, 37.421586 55.853575, 37.421551 55.853679, 37.421510 55.853802, 37.421474 55.853906)",
"style": "normal"
},
{
"color": "fast",
"length": 440,
"selection": "LINESTRING(37.421474 55.853906, 37.421241 55.854588, 37.421091 55.855027, 37.420948 55.855450, 37.420712 55.856139, 37.420664 55.856280, 37.420619 55.856412, 37.420601 55.856465, 37.420482 55.856813, 37.420437 55.856979, 37.420292 55.857370, 37.420168 55.857733, 37.420126 55.857829)",
"style": "normal"
}
],
"names": ["Туристская"]
},
"outcoming_path_comment": "800 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Героев Панфиловцев",
"icon": "crossroad_right",
"id": "3899307893964558622",
"outcoming_path": {
"distance": 1215,
"duration": 177,
"geometry": [
{
"color": "fast",
"length": 1122,
"selection": "LINESTRING(37.420126 55.857829, 37.420116 55.857913, 37.420108 55.857990, 37.420110 55.858019, 37.420119 55.858049, 37.420128 55.858076, 37.420154 55.858111, 37.420191 55.858141, 37.420240 55.858163, 37.420298 55.858176, 37.420337 55.858184, 37.420479 55.858209, 37.421048 55.858248, 37.422347 55.858333, 37.422844 55.858361, 37.423308 55.858387, 37.423413 55.858391, 37.424230 55.858425, 37.424659 55.858429, 37.424879 55.858431, 37.425216 55.858433, 37.425678 55.858427, 37.426334 55.858417, 37.426521 55.858409, 37.427322 55.858377, 37.427446 55.858369, 37.427874 55.858344, 37.428299 55.858318, 37.428504 55.858301, 37.429219 55.858243, 37.429421 55.858222, 37.429716 55.858192, 37.429939 55.858169, 37.430184 55.858143, 37.430287 55.858112, 37.430367 55.858092, 37.430450 55.858077, 37.431012 55.858002, 37.431608 55.857890, 37.431775 55.857858, 37.431879 55.857835, 37.432048 55.857797, 37.432184 55.857766, 37.432580 55.857677, 37.432962 55.857567, 37.433210 55.857495, 37.433651 55.857351, 37.433935 55.857258, 37.434283 55.857121, 37.434463 55.857051, 37.435032 55.856788, 37.435631 55.856487, 37.436030 55.856258, 37.436272 55.856118, 37.436310 55.856092, 37.436432 55.856008)",
"style": "normal"
},
{
"color": "normal",
"length": 93,
"selection": "LINESTRING(37.436432 55.856008, 37.436802 55.855753, 37.436871 55.855693, 37.437181 55.855423, 37.437301 55.855318)",
"style": "normal"
}
],
"names": ["Героев Панфиловцев"]
},
"outcoming_path_comment": "1.2 км прямо",
"turn_angle": 95,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Фомичёвой",
"icon": "crossroad_left",
"id": "2422166763560329163",
"outcoming_path": {
"distance": 474,
"duration": 92,
"geometry": [
{
"color": "fast",
"length": 474,
"selection": "LINESTRING(37.437301 55.855318, 37.437420 55.855359, 37.437555 55.855404, 37.437783 55.855479, 37.438023 55.855558, 37.438440 55.855696, 37.438610 55.855752, 37.438751 55.855797, 37.439219 55.855952, 37.440245 55.856290, 37.440792 55.856470, 37.441425 55.856678, 37.441534 55.856715, 37.442235 55.856946, 37.442595 55.857064, 37.442876 55.857157, 37.443833 55.857472, 37.443947 55.857509)",
"style": "normal"
}
],
"names": ["Фомичёвой"]
},
"outcoming_path_comment": "450 м прямо",
"turn_angle": -87,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "16625847719164796525",
"outcoming_path": {
"distance": 42,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 42,
"selection": "LINESTRING(37.443947 55.857509, 37.443606 55.857838)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "11198150181607903437",
"outcoming_path": {
"distance": 53,
"duration": 15,
"geometry": [
{
"color": "ignore",
"length": 53,
"selection": "LINESTRING(37.443606 55.857838, 37.443507 55.857827, 37.442765 55.857746)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": -71,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "15351243132001271730",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"requested_filters": ["toll_road"],
"result_filters": ["toll_road"],
"route_id": "moscow-cr-back.m9/carrouting/1751883659.902909",
"total_distance": 2724,
"total_duration": 440,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "2.7"
},
"ui_total_duration": "7 мин",
"waypoints": [
{
"original_point": {
"lat": 55.84994763027107,
"lon": 37.42164755079632
},
"projected_point": {
"lat": 55.84994763027107,
"lon": 37.42164755079632
},
"transit": false
},
{
"original_point": {
"lat": 55.85774690250982,
"lon": 37.44276586514763
},
"projected_point": {
"lat": 55.85774690250982,
"lon": 37.44276586514763
},
"transit": false
}
]
},
{
"algorithm": "с учётом пробок",
"begin_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.421866 55.849970, 37.421647 55.849947)"
}
},
"end_pedestrian_path": {
"geometry": {
"selection": "LINESTRING(37.442765 55.857746, 37.442827 55.857569)"
}
},
"id": "1000079440756634980",
"maneuvers": [
{
"comment": "start",
"icon": "start",
"id": "4081145427597067969",
"outcoming_path": {
"distance": 45,
"duration": 13,
"geometry": [
{
"color": "ignore",
"length": 45,
"selection": "LINESTRING(37.421647 55.849947, 37.421572 55.850169, 37.421511 55.850347)",
"style": "living_zone"
}
],
"names": ["Туристская"]
},
"outcoming_path_comment": "50 м прямо",
"type": "begin"
},
{
"comment": "Поворот направо на ул. Туристская",
"icon": "crossroad_right",
"id": "5717032002271722570",
"outcoming_path": {
"distance": 64,
"duration": 18,
"geometry": [
{
"color": "ignore",
"length": 64,
"selection": "LINESTRING(37.421511 55.850347, 37.422306 55.850432, 37.422537 55.850457)",
"style": "living_zone"
}
],
"names": ["Туристская"]
},
"outcoming_path_comment": "60 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Туристская",
"icon": "crossroad_left",
"id": "8419436814939226115",
"outcoming_path": {
"distance": 133,
"duration": 26,
"geometry": [
{
"color": "fast",
"length": 7,
"selection": "LINESTRING(37.422537 55.850457, 37.422646 55.850469)",
"style": "normal"
},
{
"color": "normal",
"length": 126,
"selection": "LINESTRING(37.422646 55.850469, 37.422304 55.851472, 37.422264 55.851592)",
"style": "normal"
}
],
"names": ["Туристская"]
},
"outcoming_path_comment": "150 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо",
"icon": "crossroad_right",
"id": "14443165781879728346",
"outcoming_path": {
"distance": 422,
"duration": 116,
"geometry": [
{
"color": "fast",
"length": 422,
"selection": "LINESTRING(37.422264 55.851592, 37.422431 55.851610, 37.422907 55.851662, 37.423110 55.851684, 37.423238 55.851698, 37.424421 55.851825, 37.424796 55.851866, 37.425126 55.851901, 37.425553 55.851948, 37.425665 55.851959, 37.428083 55.852221, 37.428263 55.852241, 37.428774 55.852296, 37.428873 55.852316, 37.428948 55.852341)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "400 м прямо",
"turn_angle": 90,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "17432038086054698014",
"outcoming_path": {
"distance": 664,
"duration": 189,
"geometry": [
{
"color": "fast",
"length": 664,
"selection": "LINESTRING(37.428948 55.852341, 37.428980 55.852386, 37.428985 55.852439, 37.428907 55.852657, 37.428748 55.853096, 37.428586 55.853545, 37.428493 55.853805, 37.428356 55.854184, 37.428333 55.854249, 37.428186 55.854654, 37.428162 55.854722, 37.428003 55.855163, 37.427976 55.855236, 37.427940 55.855336, 37.427863 55.855550, 37.427837 55.855622, 37.427700 55.856002, 37.427673 55.856151, 37.427675 55.856275, 37.427682 55.856330, 37.427684 55.856334, 37.427717 55.856439, 37.427905 55.857048, 37.427952 55.857198, 37.428008 55.857380, 37.428079 55.857609, 37.428123 55.857751, 37.428210 55.858034, 37.428226 55.858086, 37.428299 55.858318)",
"style": "normal"
}
],
"names": []
},
"outcoming_path_comment": "700 м прямо",
"turn_angle": -79,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот направо на ул. Героев Панфиловцев",
"icon": "crossroad_right",
"id": "910290910621999543",
"outcoming_path": {
"distance": 675,
"duration": 101,
"geometry": [
{
"color": "fast",
"length": 582,
"selection": "LINESTRING(37.428299 55.858318, 37.428504 55.858301, 37.429219 55.858243, 37.429421 55.858222, 37.429716 55.858192, 37.429939 55.858169, 37.430184 55.858143, 37.430287 55.858112, 37.430367 55.858092, 37.430450 55.858077, 37.431012 55.858002, 37.431608 55.857890, 37.431775 55.857858, 37.431879 55.857835, 37.432048 55.857797, 37.432184 55.857766, 37.432580 55.857677, 37.432962 55.857567, 37.433210 55.857495, 37.433651 55.857351, 37.433935 55.857258, 37.434283 55.857121, 37.434463 55.857051, 37.435032 55.856788, 37.435631 55.856487, 37.436030 55.856258, 37.436272 55.856118, 37.436310 55.856092, 37.436432 55.856008)",
"style": "normal"
},
{
"color": "normal",
"length": 93,
"selection": "LINESTRING(37.436432 55.856008, 37.436802 55.855753, 37.436871 55.855693, 37.437181 55.855423, 37.437301 55.855318)",
"style": "normal"
}
],
"names": ["Героев Панфиловцев"]
},
"outcoming_path_comment": "700 м прямо",
"turn_angle": 88,
"turn_direction": "right",
"type": "crossroad"
},
{
"comment": "Поворот налево на ул. Фомичёвой",
"icon": "crossroad_left",
"id": "15251544352921358411",
"outcoming_path": {
"distance": 474,
"duration": 93,
"geometry": [
{
"color": "fast",
"length": 474,
"selection": "LINESTRING(37.437301 55.855318, 37.437420 55.855359, 37.437555 55.855404, 37.437783 55.855479, 37.438023 55.855558, 37.438440 55.855696, 37.438610 55.855752, 37.438751 55.855797, 37.439219 55.855952, 37.440245 55.856290, 37.440792 55.856470, 37.441425 55.856678, 37.441534 55.856715, 37.442235 55.856946, 37.442595 55.857064, 37.442876 55.857157, 37.443833 55.857472, 37.443947 55.857509)",
"style": "normal"
}
],
"names": ["Фомичёвой"]
},
"outcoming_path_comment": "450 м прямо",
"turn_angle": -87,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "15206265669341154802",
"outcoming_path": {
"distance": 42,
"duration": 12,
"geometry": [
{
"color": "ignore",
"length": 42,
"selection": "LINESTRING(37.443947 55.857509, 37.443606 55.857838)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "40 м прямо",
"turn_angle": -90,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "Поворот налево",
"icon": "crossroad_left",
"id": "18027657248006269829",
"outcoming_path": {
"distance": 53,
"duration": 15,
"geometry": [
{
"color": "ignore",
"length": 53,
"selection": "LINESTRING(37.443606 55.857838, 37.443507 55.857827, 37.442765 55.857746)",
"style": "living_zone"
}
],
"names": []
},
"outcoming_path_comment": "50 м прямо",
"turn_angle": -71,
"turn_direction": "left",
"type": "crossroad"
},
{
"comment": "finish",
"icon": "finish",
"id": "15351243132001271730",
"outcoming_path_comment": "Вы на месте!",
"type": "end"
}
],
"reliability": 0.0,
"requested_filters": ["toll_road"],
"result_filters": ["toll_road"],
"route_id": "moscow-cr-back.m9/carrouting/1751883659.903528",
"total_distance": 2572,
"total_duration": 583,
"type": "carrouting",
"ui_total_distance": {
"unit": "км",
"value": "2.6"
},
"ui_total_duration": "9 мин",
"waypoints": [
{
"original_point": {
"lat": 55.84994763027107,
"lon": 37.42164755079632
},
"projected_point": {
"lat": 55.84994763027107,
"lon": 37.42164755079632
},
"transit": false
},
{
"original_point": {
"lat": 55.85774690250982,
"lon": 37.44276586514763
},
"projected_point": {
"lat": 55.85774690250982,
"lon": 37.44276586514763
},
"transit": false
}
]
}
],
"status": "OK",
"type": "result"
}