Trafiklb realtime API i Skåne

Hej,

i run a trafiklab realtime API on an arduino mkr 1010 showing the trains timetable for a given station in Skåne. The goal of this project was to compare real time vs scheduled time, so I get the the delay calculated and displayed on the screen. It was working fine, then during the summer the JSON format has somehow changed, i dont remember the details exactly, but i updated my sketch in order to get it to work again. I realised then that the JSON real time and Schedule time are now always the same, regardless of the train being late or not. Is theres a way to get Skånetrafiken realtime accurate, or should i use another API?

Tack för hjälpen,

Clément
Clément

Kommentarer

  • A small precision, on the same stop id, the bus delay is shown, but not the trains' delay.
    Clément
  • Hi!

    Realtime train data is not available yet in our Trafiklab Realtime APIs and GTFS Sweden 3 data, but we're working on it.

    In the meantime, the Trafikverket Open API should cover your needs.
    https://www.trafiklab.se/api/other-apis/trafikverket/

    Regards,
    Bert
    Bert på Trafiklab

Kommentera eller skriv ett nytt inlägg

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