← Estland

Tallinn fordon i realtid

GET /tallinn/transport/vehicles

GPS-positioner i realtid för alla kollektivtrafikfordon i Tallinn – bussar, spårvagnar, trådbussar och tåg. Returnerar fordonstyp, linjenummer, koordinater, riktning, fordons-ID och närmaste hållplats. Data från transport.tallinn.ee. Filtrera efter typ: bus, tram, trolleybus.

Se det visualiserat

Parametrar

typ valfri

Filter by vehicle type: bus, tram, trolleybus, train

Exempelförfrågningar

Grundläggande användning
curl https://nordapi.ee/api/v1/tallinn/transport/vehicles

Livesvar

{
  "data": {
    "count": 7,
    "vehicles": [
      {
        "at_stop": true,
        "direction": 45,
        "latitude": 59.41145,
        "line": "1",
        "longitude": 24.66257,
        "nearest_stop": "Hobujaama",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "1012"
      },
      {
        "at_stop": true,
        "direction": 7,
        "latitude": 59.41096,
        "line": "8",
        "longitude": 24.65925,
        "nearest_stop": "Väike-Õismäe",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "1162"
      },
      {
        "at_stop": true,
        "direction": 270,
        "latitude": 59.41117,
        "line": "19",
        "longitude": 24.65951,
        "nearest_stop": "Laagri alevik",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "1170"
      },
      {
        "at_stop": true,
        "direction": 172,
        "latitude": 59.40854,
        "line": "2",
        "longitude": 24.66064,
        "nearest_stop": "Balti jaam",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "2212"
      },
      {
        "at_stop": true,
        "direction": 297,
        "latitude": 59.44786,
        "line": "25",
        "longitude": 24.89532,
        "nearest_stop": "Reisisadama D-terminal",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "2471"
      },
      {
        "at_stop": true,
        "direction": 206,
        "latitude": 59.40942,
        "line": "20",
        "longitude": 24.65801,
        "nearest_stop": "Viru keskus",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "2767"
      },
      {
        "at_stop": true,
        "direction": 301,
        "latitude": 59.40976,
        "line": "33",
        "longitude": 24.65668,
        "nearest_stop": "Kopli",
        "type": "bus",
        "type_code": "2",
        "vehicle_id": "2895"
      }
    ]
  },
  "success": true
}