{
  "openapi": "3.1.1",
  "info": {
    "title": "paid-api/route",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    },
    {
      "url": "https://api.ati.su"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/gw/gis-rm/v1/distance": {
      "post": {
        "tags": [
          "Route"
        ],
        "summary": "Получение расстояния (платный)",
        "requestBody": {
          "description": "GeoService.Models.Request.GetDistanceRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetDistanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetDistanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetDistanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Расстояние и время в пути. status: success — маршрут построен с учётом всех ограничений, without_restrictions — только без ограничений",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Расстояние в метрах",
                  "$ref": "#/components/schemas/DistanceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "not_enough_points",
                      "reason": "nodes: маршрут должен содержать минимум 2 точки"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "404": {
            "description": "Маршрут не найден (route_not_found) или не найдена одна из точек маршрута (point_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "route_not_found",
                  "reason": "Маршрут не найден"
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен (too_many_requests) или построение маршрута не уложилось в таймаут (request_timeout)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/oauth2/gis-rm/v1/distance": {
      "post": {
        "tags": [
          "Route"
        ],
        "summary": "Получение расстояния (платный)",
        "requestBody": {
          "description": "GeoService.Models.Request.GetDistanceRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetDistanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetDistanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetDistanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Расстояние и время в пути. status: success — маршрут построен с учётом всех ограничений, without_restrictions — только без ограничений",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Расстояние в метрах",
                  "$ref": "#/components/schemas/DistanceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "not_enough_points",
                      "reason": "nodes: маршрут должен содержать минимум 2 точки"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "404": {
            "description": "Маршрут не найден (route_not_found) или не найдена одна из точек маршрута (point_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "route_not_found",
                  "reason": "Маршрут не найден"
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен (too_many_requests) или построение маршрута не уложилось в таймаут (request_timeout)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/gis-rm/v1/route-info": {
      "post": {
        "tags": [
          "Route"
        ],
        "summary": "Получение маршрута (платный)",
        "parameters": [
          {
            "name": "visual-route",
            "in": "query",
            "description": "Вернуть в ответе поле `visual_route` — координаты маршрута для отрисовки на карте (обрезаются по `map_bounds`, если он передан). По умолчанию `false`",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "route-info",
            "in": "query",
            "description": "Вернуть в ответе поле `route_info` — сегменты маршрута с попутными населёнными пунктами, названиями трасс и расстояниями по типам дорог. По умолчанию `false`",
            "schema": {
              "type": "boolean"
            },
            "example": true
          }
        ],
        "requestBody": {
          "description": "GeoService.Models.Request.GetRouteInfoIntegratorRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetRouteInfoIntegratorRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetRouteInfoIntegratorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetRouteInfoIntegratorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Маршрут: расстояния и время в пути, при visual-route=true — visual_route, при route-info=true — route_info. status: success или without_restrictions",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Маршрут: итоговые расстояния и время в пути, а также, по запросу, попутные пункты и координаты маршрута",
                  "$ref": "#/components/schemas/RouteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "argument_out_of_range",
                      "reason": "options.max_speed: значение должно быть в диапазоне от 30 до 150"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "404": {
            "description": "Маршрут не найден (route_not_found) или не найдена одна из точек маршрута (point_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "route_not_found",
                  "reason": "Маршрут не найден"
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен (too_many_requests) или построение маршрута не уложилось в таймаут (request_timeout)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/oauth2/gis-rm/v1/route-info": {
      "post": {
        "tags": [
          "Route"
        ],
        "summary": "Получение маршрута (платный)",
        "parameters": [
          {
            "name": "visual-route",
            "in": "query",
            "description": "Вернуть в ответе поле `visual_route` — координаты маршрута для отрисовки на карте (обрезаются по `map_bounds`, если он передан). По умолчанию `false`",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "route-info",
            "in": "query",
            "description": "Вернуть в ответе поле `route_info` — сегменты маршрута с попутными населёнными пунктами, названиями трасс и расстояниями по типам дорог. По умолчанию `false`",
            "schema": {
              "type": "boolean"
            },
            "example": true
          }
        ],
        "requestBody": {
          "description": "GeoService.Models.Request.GetRouteInfoIntegratorRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetRouteInfoIntegratorRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetRouteInfoIntegratorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Фильтр маршрута",
                "$ref": "#/components/schemas/GetRouteInfoIntegratorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Маршрут: расстояния и время в пути, при visual-route=true — visual_route, при route-info=true — route_info. status: success или without_restrictions",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Маршрут: итоговые расстояния и время в пути, а также, по запросу, попутные пункты и координаты маршрута",
                  "$ref": "#/components/schemas/RouteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "argument_out_of_range",
                      "reason": "options.max_speed: значение должно быть в диапазоне от 30 до 150"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "404": {
            "description": "Маршрут не найден (route_not_found) или не найдена одна из точек маршрута (point_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "route_not_found",
                  "reason": "Маршрут не найден"
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен (too_many_requests) или построение маршрута не уложилось в таймаут (request_timeout)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/gis-rm/v1/nearest-cities/with-roads-distance": {
      "post": {
        "tags": [
          "NearestCities"
        ],
        "summary": "Получение ближайших населённых пунктов с расстоянием по дорогам (платный)",
        "requestBody": {
          "description": "GeoService.Models.Request.GetNearestCitiesRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам",
                "$ref": "#/components/schemas/GetNearestCitiesRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам",
                "$ref": "#/components/schemas/GetNearestCitiesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам",
                "$ref": "#/components/schemas/GetNearestCitiesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ближайшие населённые пункты с расстоянием и временем в пути по дорогам",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "description": "Информация о ближайшем населённом пункте",
                    "$ref": "#/components/schemas/CityWithDistanceResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "argument_out_of_range",
                      "reason": "radius: значение должно быть в диапазоне от 1 000 до 300 000"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен, повторите запрос позже (too_many_requests)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/oauth2/gis-rm/v1/nearest-cities/with-roads-distance": {
      "post": {
        "tags": [
          "NearestCities"
        ],
        "summary": "Получение ближайших населённых пунктов с расстоянием по дорогам (платный)",
        "requestBody": {
          "description": "GeoService.Models.Request.GetNearestCitiesRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам",
                "$ref": "#/components/schemas/GetNearestCitiesRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам",
                "$ref": "#/components/schemas/GetNearestCitiesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам",
                "$ref": "#/components/schemas/GetNearestCitiesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ближайшие населённые пункты с расстоянием и временем в пути по дорогам",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "description": "Информация о ближайшем населённом пункте",
                    "$ref": "#/components/schemas/CityWithDistanceResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "argument_out_of_range",
                      "reason": "radius: значение должно быть в диапазоне от 1 000 до 300 000"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен, повторите запрос позже (too_many_requests)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/gis-rm/v1/cities-in-radius": {
      "post": {
        "tags": [
          "NearestCities"
        ],
        "summary": "Поиск в радиусе. Получение всех населённых пунктов, до которых можно доехать по дорогам, не превышая заданное расстояние (платный)",
        "description": "Первый элемент ответа — исходный населённый пункт `city_id` с расстоянием `0`.\nОстальные — населённые пункты из списка `cities_key` в пределах `radius`; порядок элементов не гарантируется.",
        "requestBody": {
          "description": "GeoService.Models.Request.CitiesInRadiusRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса",
                "$ref": "#/components/schemas/CitiesInRadiusRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса",
                "$ref": "#/components/schemas/CitiesInRadiusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса",
                "$ref": "#/components/schemas/CitiesInRadiusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Населённые пункты в радиусе; первый элемент — исходный населённый пункт с расстоянием 0 (если его нет в графе дорог, в ответе только он)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "description": "Населённый пункт в радиусе и расстояние до него по дорогам.\nПоля имеют короткие имена: `c` — идентификатор населённого пункта, `d` — расстояние в метрах",
                    "$ref": "#/components/schemas/CityIdWithDistance"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "invalid_cities_key",
                      "reason": "cities_key: Указан невалидный ключ для дополнительной фильтрации населённых пунктов"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен, повторите запрос позже (too_many_requests)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    },
    "/gw/oauth2/gis-rm/v1/cities-in-radius": {
      "post": {
        "tags": [
          "NearestCities"
        ],
        "summary": "Поиск в радиусе. Получение всех населённых пунктов, до которых можно доехать по дорогам, не превышая заданное расстояние (платный)",
        "description": "Первый элемент ответа — исходный населённый пункт `city_id` с расстоянием `0`.\nОстальные — населённые пункты из списка `cities_key` в пределах `radius`; порядок элементов не гарантируется.",
        "requestBody": {
          "description": "GeoService.Models.Request.CitiesInRadiusRequest",
          "content": {
            "application/json": {
              "schema": {
                "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса",
                "$ref": "#/components/schemas/CitiesInRadiusRequest"
              }
            },
            "text/json": {
              "schema": {
                "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса",
                "$ref": "#/components/schemas/CitiesInRadiusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса",
                "$ref": "#/components/schemas/CitiesInRadiusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Населённые пункты в радиусе; первый элемент — исходный населённый пункт с расстоянием 0 (если его нет в графе дорог, в ответе только он)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "description": "Населённый пункт в радиусе и расстояние до него по дорогам.\nПоля имеют короткие имена: `c` — идентификатор населённого пункта, `d` — расстояние в метрах",
                    "$ref": "#/components/schemas/CityIdWithDistance"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Тело запроса не прошло валидацию, список ошибок — в error_list",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибки валидации тела запроса",
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                },
                "example": {
                  "error": "validation_errors",
                  "reason": "Произошли ошибки валидации",
                  "error_list": [
                    {
                      "error": "invalid_cities_key",
                      "reason": "cities_key: Указан невалидный ключ для дополнительной фильтрации населённых пунктов"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Нет активной лицензии на платный доступ (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Нет активных лицензий."
                }
              }
            }
          },
          "429": {
            "description": "Превышен дневной лимит запросов по лицензии (access_denied)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "access_denied",
                  "reason": "Превышен дневной лимит."
                }
              }
            }
          },
          "503": {
            "description": "Сервис перегружен, повторите запрос позже (too_many_requests)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Ошибка выполнения запроса",
                  "$ref": "#/components/schemas/SingleErrorResponse"
                },
                "example": {
                  "error": "too_many_requests",
                  "reason": "Слишком много запросов"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CitiesInRadiusRequest": {
        "required": [
          "cities_key",
          "city_id",
          "radius"
        ],
        "type": "object",
        "properties": {
          "city_id": {
            "type": "integer",
            "description": "Идентификатор населённого пункта",
            "format": "int32",
            "example": 1
          },
          "cities_key": {
            "type": "string",
            "description": "Ключ списка населённых пунктов для дополнительной фильтрации",
            "example": "active-cities"
          },
          "within_country": {
            "type": "boolean",
            "description": "Искать населённые пункты только внутри страны\n\nЗначение по умолчанию: `true`",
            "example": true
          },
          "limit": {
            "maximum": 10000,
            "minimum": 0,
            "type": "integer",
            "description": "Максимальное количество результатов\n\nМинимальное значение: `0`\nМаксимальное значение: `10000`\nЗначение по умолчанию: `0` без лимита",
            "format": "int32",
            "example": 10
          },
          "radius": {
            "maximum": 300000,
            "minimum": 1000,
            "type": "integer",
            "description": "Максимальное расстояние в метрах\n\nМинимальное значение: `1 000`\nМаксимальное значение: `300 000`",
            "format": "int32",
            "example": 300000
          }
        },
        "additionalProperties": false,
        "description": "Параметры поиска населённых пунктов, до которых можно доехать по дорогам в пределах радиуса"
      },
      "CityIdWithDistance": {
        "type": "object",
        "properties": {
          "c": {
            "type": "integer",
            "description": "Идентификатор населённого пункта (поле `c`)",
            "format": "int32",
            "example": 30447
          },
          "d": {
            "type": "integer",
            "description": "Расстояние до населённого пункта по дорогам в метрах (поле `d`)",
            "format": "int32",
            "example": 14827
          }
        },
        "additionalProperties": false,
        "description": "Населённый пункт в радиусе и расстояние до него по дорогам.\nПоля имеют короткие имена: `c` — идентификатор населённого пункта, `d` — расстояние в метрах"
      },
      "ValidationErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Текстовый код ошибки, всегда `validation_errors`",
            "readOnly": true,
            "example": "validation_errors"
          },
          "reason": {
            "type": "string",
            "description": "Человекочитаемое описание ошибки",
            "readOnly": true,
            "example": "Произошли ошибки валидации"
          },
          "error_list": {
            "type": "array",
            "items": {
              "description": "Ошибка выполнения запроса",
              "$ref": "#/components/schemas/SingleErrorResponse"
            },
            "description": "Список ошибок валидации: код ошибки и поле запроса с описанием проблемы",
            "example": [
              {
                "error": "argument_out_of_range",
                "reason": "radius: значение должно быть в диапазоне от 1 000 до 300 000"
              }
            ]
          },
          "details": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {},
            "description": "Дополнительная информация об ошибке. Поле передаётся, только если заполнено",
            "example": {
              "field": "radius"
            }
          }
        },
        "additionalProperties": false,
        "description": "Ошибки валидации тела запроса"
      },
      "SingleErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Текстовый код ошибки",
            "example": "route_not_found"
          },
          "reason": {
            "type": "string",
            "description": "Человекочитаемое описание ошибки",
            "example": "Маршрут не найден"
          },
          "details": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {},
            "description": "Дополнительная информация об ошибке. Поле передаётся, только если заполнено",
            "example": {
              "field": "nodes[1].node_id"
            }
          }
        },
        "additionalProperties": false,
        "description": "Ошибка выполнения запроса"
      },
      "GetDistanceRequest": {
        "required": [
          "nodes"
        ],
        "type": "object",
        "properties": {
          "nodes": {
            "type": "array",
            "items": {
              "description": "Точка",
              "$ref": "#/components/schemas/Node"
            },
            "description": "Точки маршрута в порядке следования",
            "example": [
              {
                "geo_point": {
                  "lat": 59.974007,
                  "lon": 30.333005
                },
                "node_id": 1
              },
              {
                "geo_point": {
                  "lat": 55.805131,
                  "lon": 37.506607
                },
                "node_id": 3611
              }
            ]
          },
          "options": {
            "description": "Ограничения маршрута",
            "$ref": "#/components/schemas/RouteOptionsRequest"
          }
        },
        "additionalProperties": false,
        "description": "Фильтр маршрута"
      },
      "DistanceResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "success - нашли маршрут по всем параметрам фильтра. without_restrictions - не нашли маршрут по всем параметрам фильтра, но нашли маршрут без ограничений",
            "example": "success"
          },
          "platon_rate": {
            "type": "number",
            "description": "Стоимость проезда по Платону в рублях РФ",
            "format": "double",
            "readOnly": true,
            "example": 5.19
          },
          "platon_distance": {
            "type": "integer",
            "description": "Общее расстояние, преодоленное по Платону в метрах",
            "format": "int32",
            "example": 3906
          },
          "toll_distance": {
            "type": "integer",
            "description": "Общее расстояние платных дорог в метрах",
            "format": "int32",
            "example": 677660
          },
          "total_distance": {
            "type": "integer",
            "description": "Расстояние в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 707655
          },
          "travel_time": {
            "type": "integer",
            "description": "Время в пути в секундах с учетом параметров и задержек",
            "format": "int32",
            "example": 26168
          }
        },
        "additionalProperties": false,
        "description": "Расстояние в метрах"
      },
      "GetNearestCitiesRequest": {
        "required": [
          "start_point"
        ],
        "type": "object",
        "properties": {
          "start_point": {
            "description": "Информация о начальной точке",
            "$ref": "#/components/schemas/Node"
          },
          "radius": {
            "maximum": 300000,
            "minimum": 1000,
            "type": "integer",
            "description": "Радиус поиска в метрах\n\nЗначение по умолчанию: `200000`\nМаксимальное значение: `300000`",
            "format": "int32",
            "example": 200000
          },
          "cities_count": {
            "maximum": 20,
            "minimum": 1,
            "type": "integer",
            "description": "Количество населённых пунктов в выдаче\n\nЗначение по умолчанию: `5`\nМаксимальное значение: `20`",
            "format": "int32",
            "example": 5
          },
          "large_cities_count": {
            "maximum": 20,
            "minimum": 0,
            "type": "integer",
            "description": "Количество крупных населённых пунктов в выдаче (население от 100 000 человек)\n\nЗначение по умолчанию: `3`\nМаксимальное значение: `20`",
            "format": "int32",
            "example": 3
          }
        },
        "additionalProperties": false,
        "description": "Параметры поиска ближайших населённых пунктов с расстоянием по дорогам"
      },
      "CityWithDistanceResponse": {
        "type": "object",
        "properties": {
          "city_id": {
            "type": "integer",
            "description": "Идентификатор населённого пункта",
            "format": "int32",
            "example": 19206
          },
          "distance": {
            "type": "integer",
            "description": "Расстояние до населённого пункта по дорогам в метрах",
            "format": "int32",
            "example": 14162
          },
          "time": {
            "type": "integer",
            "description": "Время в пути до населённого пункта в секундах",
            "format": "int32",
            "example": 1065
          }
        },
        "additionalProperties": false,
        "description": "Информация о ближайшем населённом пункте"
      },
      "GetRouteInfoIntegratorRequest": {
        "required": [
          "nodes"
        ],
        "type": "object",
        "properties": {
          "options": {
            "description": "Ограничения маршрута",
            "$ref": "#/components/schemas/RouteOptionsRequest"
          },
          "map_bounds": {
            "description": "Границы видимой части карты",
            "$ref": "#/components/schemas/MapBounds"
          },
          "nodes": {
            "type": "array",
            "items": {
              "description": "Точка маршрута: населённый пункт (node_id) и/или координаты (geo_point) с типом точки",
              "$ref": "#/components/schemas/RouteInfoNode"
            },
            "description": "Точки маршрута в порядке следования",
            "example": [
              {
                "geo_point": {
                  "lat": 59.974007,
                  "lon": 30.333005
                },
                "node_id": 1,
                "type": 1
              },
              {
                "geo_point": {
                  "lat": 55.805131,
                  "lon": 37.506607
                },
                "node_id": 3611,
                "type": 2
              }
            ]
          },
          "exclude_regions": {
            "uniqueItems": true,
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Не заезжать в указанные регионы",
            "example": [
              15
            ]
          },
          "exclude_countries": {
            "uniqueItems": true,
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Не заезжать в указанные страны",
            "example": [
              2
            ]
          }
        },
        "additionalProperties": false,
        "description": "Фильтр маршрута"
      },
      "RouteResponse": {
        "required": [
          "platon_distance",
          "platon_rate",
          "status",
          "toll_distance",
          "total_distance",
          "travel_time"
        ],
        "type": "object",
        "properties": {
          "route_info": {
            "description": "Информация о попутных городах маршрута и названиях дорог.\nЗаполняется только при query-параметре `route-info=true`",
            "$ref": "#/components/schemas/RouteInfoResponse"
          },
          "visual_route": {
            "description": "Координаты точек маршрута для отрисовки на карте.\nЗаполняется только при query-параметре `visual-route=true`; если передан `map_bounds`, координаты обрезаются по видимой части карты",
            "$ref": "#/components/schemas/VisualRouteResponse"
          },
          "status": {
            "type": "string",
            "description": "success - нашли маршрут по всем параметрам фильтра. without_restrictions - не нашли маршрут по всем параметрам фильтра, но нашли маршрут без ограничений",
            "example": "success"
          },
          "platon_rate": {
            "type": "number",
            "description": "Стоимость проезда по Платону в рублях РФ",
            "format": "double",
            "example": 5.19
          },
          "platon_distance": {
            "type": "integer",
            "description": "Общее расстояние, преодоленное по Платону в метрах",
            "format": "int32",
            "example": 3906
          },
          "toll_distance": {
            "type": "integer",
            "description": "Общее расстояние платных дорог в метрах",
            "format": "int32",
            "example": 677660
          },
          "total_distance": {
            "type": "integer",
            "description": "Общее расстояние в метрах",
            "format": "int32",
            "example": 707655
          },
          "travel_time": {
            "type": "integer",
            "description": "Время в пути в секундах с учетом параметров и задержек",
            "format": "int32",
            "example": 26168
          }
        },
        "additionalProperties": false,
        "description": "Маршрут: итоговые расстояния и время в пути, а также, по запросу, попутные пункты и координаты маршрута"
      },
      "Node": {
        "type": "object",
        "properties": {
          "node_id": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Идентификатор населённого пункта",
            "format": "int32",
            "example": 1
          },
          "geo_point": {
            "description": "Координаты точки",
            "$ref": "#/components/schemas/GeoPointRequestModel"
          }
        },
        "additionalProperties": false,
        "description": "Точка"
      },
      "RouteOptionsRequest": {
        "type": "object",
        "properties": {
          "within_country": {
            "type": "boolean",
            "description": "Строить маршрут внутри одной страны\n\nЗначение по умолчанию: `true`",
            "example": true
          },
          "exclude_mkad": {
            "type": "boolean",
            "description": "Не заезжать на МКАД\n\nЗначение по умолчанию: `false`",
            "example": false
          },
          "exclude_ukraine": {
            "type": "boolean",
            "description": "Не заезжать в Украину\n\nЗначение по умолчанию: `true`",
            "example": true
          },
          "allow_ferry": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Разрешить проезд по паромам\nПри передаче значения по умолчанию будет учитываться расписание (пока расписания нет, поэтому всегда разрешены)\n\nЗначение по умолчанию: `null`",
            "example": true
          },
          "allow_winter_road": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Разрешить проезд по зимникам\nПри передаче значения по умолчанию будет учитываться расписание (декабрь, январь, февраль - зимники разрешены, остальные месяцы - запрещены)\n\nЗначение по умолчанию: `null`",
            "example": false
          },
          "allow_toll_road": {
            "type": "boolean",
            "description": "Разрешить проезд по платным трассам\n\nЗначение по умолчанию: `true`",
            "example": true
          },
          "strategy": {
            "enum": [
              1,
              2
            ],
            "type": "integer",
            "description": "Тип маршрута для поиска\n\nЗначение по умолчанию: `2`<p>Members:</p><ul><li><i>1</i> - Самый короткий</li><li><i>2</i> - Самый быстрый</li></ul>",
            "format": "int32",
            "example": 1
          },
          "customs_delay": {
            "maximum": 10080,
            "minimum": 0,
            "type": "integer",
            "description": "Задержка при пересечении границы в минутах\n\nЗначение по умолчанию: `120`",
            "format": "int32",
            "example": 120
          },
          "ferry_delay": {
            "maximum": 10080,
            "minimum": 0,
            "type": "integer",
            "description": "Задержка при использовании паромов в минутах\n\nЗначение по умолчанию: `120`",
            "format": "int32",
            "example": 120
          },
          "max_speed": {
            "maximum": 150,
            "minimum": 30,
            "type": "integer",
            "description": "Максимальная скорость транспортного средства в км/ч\n\nЗначение по умолчанию: `110`",
            "format": "int32",
            "example": 110
          },
          "weight": {
            "maximum": 120000,
            "minimum": 1,
            "type": "integer",
            "description": "Полная масса транспортного средства в килограммах\n\nЗначение по умолчанию: `10 000`",
            "format": "int32",
            "example": 10000
          }
        },
        "additionalProperties": false,
        "description": "Ограничения маршрута"
      },
      "MapBounds": {
        "required": [
          "north_east",
          "south_west"
        ],
        "type": "object",
        "properties": {
          "north_east": {
            "description": "Верхняя правая (северо-восточная) точка",
            "$ref": "#/components/schemas/MapBoundsNorthEastGeoPointRequestModel"
          },
          "south_west": {
            "description": "Нижняя левая (юго-западная) точка",
            "$ref": "#/components/schemas/MapBoundsSouthWestGeoPointRequestModel"
          }
        },
        "additionalProperties": false,
        "description": "Границы видимой части карты. Используются только для обрезки координат `visual_route` (query-параметр `visual-route=true`).\nЕсли передан, обе точки обязательны"
      },
      "RouteInfoNode": {
        "type": "object",
        "properties": {
          "node_id": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Идентификатор населённого пункта",
            "format": "int32",
            "example": 1
          },
          "geo_point": {
            "description": "Координаты точки",
            "$ref": "#/components/schemas/GeoPointRequestModel"
          },
          "type": {
            "enum": [
              0,
              1,
              2,
              4,
              8,
              16,
              32,
              64
            ],
            "type": "integer",
            "description": "Тип точки маршрута. Может быть маской.<p>Members:</p><ul><li><i>0</i> - Просто город, который проезжаем мимо не заезжая в него.</li><li><i>1</i> - Начало маршрута</li><li><i>2</i> - Конец маршрута</li><li><i>4</i> - Точка загрузки</li><li><i>8</i> - Точка разгрузки</li><li><i>16</i> - Промежуточная точка</li><li><i>32</i> - Таможня</li><li><i>64</i> - На следующем отрезке в машине есть груз</li></ul>",
            "format": "int32",
            "example": 1
          }
        },
        "additionalProperties": false,
        "description": "Точка маршрута: населённый пункт (node_id) и/или координаты (geo_point) с типом точки"
      },
      "RouteInfoResponse": {
        "type": "object",
        "properties": {
          "segments": {
            "type": "array",
            "items": {
              "description": "Сегмент маршрута",
              "$ref": "#/components/schemas/RouteInfoSegmentResponse"
            },
            "description": "Сегменты маршрута",
            "readOnly": true,
            "example": [
              {
                "route_point": {
                  "node_types": 1,
                  "city_info": {
                    "city_id": 1,
                    "name": "Санкт-Петербург",
                    "city_size": 6
                  },
                  "geo_point": {
                    "lat": 59.942329,
                    "lon": 30.306452
                  },
                  "region_info": {
                    "region_id": 153,
                    "name": "Санкт-Петербург"
                  },
                  "country_info": {
                    "country_id": 1,
                    "name": "Россия"
                  }
                },
                "route_details": {
                  "track_names": [
                    "А-118",
                    "М-11"
                  ],
                  "ferry_distance": 0,
                  "other_type_distance": 0,
                  "winter_road_distance": 0,
                  "common_distance": 9492,
                  "trunk_distance": 0,
                  "motorway_distance": 9478,
                  "platon_distance": 2677,
                  "toll_distance": 6022,
                  "mkad_distance": 0,
                  "total_distance": 18971,
                  "total_time": 1158
                }
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Информация о попутных городах маршрута и названиях дорог"
      },
      "VisualRouteResponse": {
        "type": "object",
        "properties": {
          "segments": {
            "type": "array",
            "items": {
              "description": "Отрезок маршрута",
              "$ref": "#/components/schemas/VisualRouteSegmentResponse"
            },
            "description": "Координаты отрезка маршрута",
            "example": [
              {
                "fare_visualization_type": 4,
                "geo_points": [
                  [
                    {
                      "lat": 59.942329,
                      "lon": 30.306452
                    },
                    {
                      "lat": 59.875595,
                      "lon": 30.298382
                    }
                  ]
                ],
                "distance": 8254
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Координаты точек маршрута"
      },
      "GeoPointRequestModel": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "Широта",
            "format": "double",
            "example": 59.8913
          },
          "lon": {
            "type": "number",
            "description": "Долгота",
            "format": "double",
            "example": 30.3727
          }
        },
        "additionalProperties": false,
        "description": "Координаты точки"
      },
      "MapBoundsNorthEastGeoPointRequestModel": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "Широта",
            "format": "double",
            "example": 60.866312
          },
          "lon": {
            "type": "number",
            "description": "Долгота",
            "format": "double",
            "example": 44.121093
          }
        },
        "additionalProperties": false,
        "description": "Координаты точки"
      },
      "MapBoundsSouthWestGeoPointRequestModel": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "Широта",
            "format": "double",
            "example": 54.591162
          },
          "lon": {
            "type": "number",
            "description": "Долгота",
            "format": "double",
            "example": 23.192138
          }
        },
        "additionalProperties": false,
        "description": "Координаты точки"
      },
      "RouteInfoSegmentResponse": {
        "type": "object",
        "properties": {
          "route_point": {
            "description": "Информация о точке",
            "$ref": "#/components/schemas/RoutePointResponse"
          },
          "route_details": {
            "description": "Информация об отрезке",
            "$ref": "#/components/schemas/RouteDetailsResponse"
          }
        },
        "additionalProperties": false,
        "description": "Сегмент маршрута"
      },
      "VisualRouteSegmentResponse": {
        "type": "object",
        "properties": {
          "fare_visualization_type": {
            "enum": [
              1,
              2,
              4,
              8
            ],
            "type": "integer",
            "description": "Тип платности дороги для визуализации (раскраска дорог)<p>Members:</p><ul><li><i>1</i> - Платон</li><li><i>2</i> - Платная</li><li><i>4</i> - Просто дорога</li><li><i>8</i> - Машина без груза</li></ul>",
            "format": "int32",
            "example": 4
          },
          "geo_points": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "description": "Координаты точки",
                "$ref": "#/components/schemas/GeoPoint"
              }
            },
            "description": "Координаты точек отрезка маршрута",
            "example": [
              [
                {
                  "lat": 59.942329,
                  "lon": 30.306452
                },
                {
                  "lat": 59.875595,
                  "lon": 30.298382
                }
              ]
            ]
          },
          "distance": {
            "type": "integer",
            "description": "Расстояние в метрах",
            "format": "int32",
            "example": 8254
          }
        },
        "additionalProperties": false,
        "description": "Отрезок маршрута"
      },
      "RoutePointResponse": {
        "type": "object",
        "properties": {
          "node_types": {
            "enum": [
              0,
              1,
              2,
              4,
              8,
              16,
              32,
              64
            ],
            "type": "integer",
            "description": "Тип точки маршрута. Может быть маской.<p>Members:</p><ul><li><i>0</i> - Просто город, который проезжаем мимо не заезжая в него.</li><li><i>1</i> - Начало маршрута</li><li><i>2</i> - Конец маршрута</li><li><i>4</i> - Точка загрузки</li><li><i>8</i> - Точка разгрузки</li><li><i>16</i> - Промежуточная точка</li><li><i>32</i> - Таможня</li><li><i>64</i> - На следующем отрезке в машине есть груз</li></ul>",
            "format": "int32",
            "readOnly": true,
            "example": 1
          },
          "city_info": {
            "description": "Информация о населённом пункте",
            "$ref": "#/components/schemas/CityInfo"
          },
          "geo_point": {
            "description": "Координаты. Если это ключевая точка маршрута, то её координаты. Если это попутный населенный пункт или таможня, то возвращаются их координаты центра",
            "$ref": "#/components/schemas/GeoPointResponseModel"
          },
          "region_info": {
            "description": "Информация о регионе",
            "$ref": "#/components/schemas/RegionInfoResponse"
          },
          "country_info": {
            "description": "Информация о стране",
            "$ref": "#/components/schemas/CountryInfoResponse"
          }
        },
        "additionalProperties": false,
        "description": "Точка маршрута: ключевая точка из запроса, попутный населённый пункт или таможня"
      },
      "RouteDetailsResponse": {
        "type": "object",
        "properties": {
          "track_names": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Названия трасс, которые есть в сегменте",
            "readOnly": true,
            "example": [
              "А-118",
              "М-11"
            ]
          },
          "ferry_distance": {
            "type": "integer",
            "description": "Расстояние по парому в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 0
          },
          "other_type_distance": {
            "type": "integer",
            "description": "Расстояние, преодоленное по дорогам второго класса и ниже в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 0
          },
          "winter_road_distance": {
            "type": "integer",
            "description": "Расстояние по зимнику в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 0
          },
          "common_distance": {
            "type": "integer",
            "description": "Расстояние по дорогам общего пользования в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 9492
          },
          "trunk_distance": {
            "type": "integer",
            "description": "Расстояние по трассам в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 0
          },
          "motorway_distance": {
            "type": "integer",
            "description": "Расстояние по автомагистралям в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 9478
          },
          "platon_distance": {
            "type": "integer",
            "description": "Расстояние, преодоленное по Платону в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 2677
          },
          "toll_distance": {
            "type": "integer",
            "description": "Расстояние, преодоленное по платным дорогам в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 6022
          },
          "mkad_distance": {
            "type": "integer",
            "description": "Расстояние, преодоленное по МКАДу в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 0
          },
          "total_distance": {
            "type": "integer",
            "description": "Общее расстояние сегмента в метрах",
            "format": "int32",
            "readOnly": true,
            "example": 18971
          },
          "total_time": {
            "type": "integer",
            "description": "Общее время проезда по сегменту в секундах",
            "format": "int32",
            "example": 1158
          }
        },
        "additionalProperties": false,
        "description": "Информация об отрезке"
      },
      "GeoPoint": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "Широта",
            "format": "double",
            "example": 59.875595
          },
          "lon": {
            "type": "number",
            "description": "Долгота",
            "format": "double",
            "example": 30.298382
          }
        },
        "additionalProperties": false,
        "description": "Координаты точки"
      },
      "CityInfo": {
        "type": "object",
        "properties": {
          "city_id": {
            "type": "integer",
            "description": "Идентификатор города",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Название города",
            "example": "Санкт-Петербург"
          },
          "city_size": {
            "enum": [
              1,
              2,
              3,
              4,
              5,
              6
            ],
            "type": "integer",
            "description": "Размер города<p>Members:</p><ul><li><i>1</i> - Менее 10 000 жителей</li><li><i>2</i> - От 10 000 до 50 000 жителей</li><li><i>3</i> - От 50 000 до 100 000 жителей</li><li><i>4</i> - От 100 000 до 500 000 жителей</li><li><i>5</i> - От 500 000 до 1 000 000 жителей</li><li><i>6</i> - Более 1 000 000 жителей</li></ul>",
            "format": "int32",
            "example": 6
          }
        },
        "additionalProperties": false,
        "description": "Информация о населённом пункте"
      },
      "GeoPointResponseModel": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "Широта",
            "format": "double",
            "example": 59.942329
          },
          "lon": {
            "type": "number",
            "description": "Долгота",
            "format": "double",
            "example": 30.306452
          }
        },
        "additionalProperties": false,
        "description": "Координаты точки"
      },
      "RegionInfoResponse": {
        "type": "object",
        "properties": {
          "region_id": {
            "type": "integer",
            "description": "Идентификатор региона",
            "format": "int32",
            "example": 153
          },
          "name": {
            "type": "string",
            "description": "Название региона",
            "example": "Санкт-Петербург"
          }
        },
        "additionalProperties": false,
        "description": "Информация о регионе"
      },
      "CountryInfoResponse": {
        "type": "object",
        "properties": {
          "country_id": {
            "type": "integer",
            "description": "Идентификатор страны",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Название страны",
            "example": "Россия"
          }
        },
        "additionalProperties": false,
        "description": "Информация о стране"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Authorization: Bearer {authorizationToken}"
      }
    }
  }
}