← Эстония

Остановки транспорта Эстонии

GET /peatus/stops

Поиск остановок общественного транспорта по всей Эстонии по названию. Возвращает название остановки, GTFS ID, координаты и тип. Данные с Peatus.ee, охватывающие все автобусы, поезда, трамваи и троллейбусы по всей стране.

Параметры

название обязательный

Stop name to search (e.g. Viru, Balti jaam, Tartu)

Примеры запросов

Базовое использование
curl "https://nordapi.ee/api/v1/peatus/stops?name=Viru"

Ответ в реальном времени

{
  "data": [
    {
      "code": "7801121-1",
      "desc": "Kavastu suunas",
      "gtfsId": "estonia:28132",
      "lat": 58.4987626,
      "locationType": "STOP",
      "lon": 27.0726602,
      "name": "Viru"
    },
    {
      "code": "12101-3",
      "desc": null,
      "gtfsId": "estonia:4341",
      "lat": 59.4357999,
      "locationType": "STOP",
      "lon": 24.7503643,
      "name": "Viru"
    },
    {
      "code": "7801122-1",
      "desc": "Koosa suunas",
      "gtfsId": "estonia:25040",
      "lat": 58.4989483,
      "locationType": "STOP",
      "lon": 27.0729697,
      "name": "Viru"
    },
    {
      "code": "5100598-1",
      "desc": null,
      "gtfsId": "estonia:22454",
      "lat": 58.938149,
      "locationType": "STOP",
      "lon": 25.7158351,
      "name": "Viru"
    },
    {
      "code": "5900954-1",
      "desc": null,
      "gtfsId": "estonia:116211",
      "lat": 59.343529,
      "locationType": "STOP",
      "lon": 26.3643966,
      "name": "Viru"
    },
    {
      "code": "21208-1",
      "desc": null,
      "gtfsId": "estonia:1635",
      "lat": 59.4363037,
      "locationType": "STOP",
      "lon": 24.7522616,
      "name": "Viru"
    },
    {
      "code": "21207-1",
      "desc": null,
      "gtfsId": "estonia:1634",
      "lat": 59.4357639,
      "locationType": "STOP",
      "lon": 24.7509457,
      "name": "Viru"
    },
    {
      "code": "6701185-1",
      "desc": "Raeküla suunas",
      "gtfsId": "estonia:22219",
      "lat": 58.360056,
      "locationType": "STOP",
      "lon": 24.5576475,
      "name": "Viru"
    },
    {
      "code": "6701186-1",
      "desc": "Kesklinna suunas",
      "gtfsId": "estonia:22220",
      "lat": 58.3594943,
      "locationType": "STOP",
      "lon": 24.5589873,
      "name": "Viru"
    },
    {
      "code": "12102-1",
      "desc": null,
      "gtfsId": "estonia:1292",
      "lat": 59.4354744,
      "locationType": "STOP",
      "lon": 24.7496653,
      "name": "Viru"
    }
  ],
  "success": true
}