Till senaste kommentaren

Missing scheduled and real-time platform for trains...

Hello! I was developing my own station traffic information display, and I encountered missing platform information for some trains.

For example, the Skånetrafiken Pågatåg has no assigned platform. Here is the JSON I received:

{
  "scheduled": "2026-04-27T21:23:00",
  "realtime": "2026-04-27T21:23:00",
  "delay": 0,
  "canceled": false,
  "route": {
    "name": "P\u00e5gat\u00e5g",
    "designation": "1785",
    "transport_mode_code": 106,
    "transport_mode": "TRAIN",
    "direction": "Ystad",
    "origin": {
      "id": "945",
      "name": "K\u00e4vlinge station"
    },
    "destination": {
      "id": "28",
      "name": "Ystad station"
    }
  },
  "trip": {
    "trip_id": "400000000000009517",
    "start_date": "2026-04-27",
    "technical_number": 1785
  },
  "agency": {
    "id": "500000000000000790",
    "name": "P\u00e5gat\u00e5g",
    "operator": "P\u00e5gat\u00e5g"
  },
  "stop": {
    "id": "3",
    "name": "Malm\u00f6 Centralstation",
    "lat": 55.608777,
    "lon": 13.000216
  },
  "scheduled_platform": null,
  "realtime_platform": null,
  "alerts": [],
  "is_realtime": true
}

One could notice that the scheduled and real-time platform information is missing; When I checked Skånetrafiken's app, the platform information exists. 

I also tried accessing Stockholm's data, and similar problems arose. There are many trains, even for the SJ trains, that were not receiving any platform information. 

Interestingly, Öresundståg and some SL trains do have information about the platform.

Would love to hear if there are any possible solutions to this issue 😀
Tiancheng

Kommentarer

  • I would not trust GTFS-RT flows for trains, since Trafikverket can change platforms on the fly etc - and that's only reflected on Trafikverket own api's TrainAnnouncement.
    Lars M (swedentransportmap.info)
  • Thank you, I will give it a shot
    Tiancheng

Kommentera eller skriv ett nytt inlägg

Ditt namn och inlägg kan ses av alla. Din e-post visas aldrig publikt.