Till senaste kommentaren
Detta inlägg är gammalt och kan innehålla inaktuell information.

Platforms information for SL and SJ

Hello! Is there platform information presented in any of the datasets? I am interested in all railway agencies in Stockholm and Uppsala, specifically SL and SJ. It could be static or real time

Thanks a lot!

Kommentarer

  • Hey Asya,

    Platform information for SL is present in the GTFS Regional Static dataset. I am however not sure if platforms for train traffic is updated in the Realtime data (platform information for other transport modes is updated in realtime).

    Realtime data for all train traffic can be obtained through trafikverkets API, for example:

    https://api.trafikinfo.trafikverket.se/v2/data.json

    with the query

    <REQUEST>
    <LOGIN authenticationkey="API_KEY_FROM_TRAFIKLAB" />
    <QUERY objecttype="TrainAnnouncement" schemaversion="1.6" limit="10">
    </QUERY>
    </REQUEST>

    would give you information such as the following:

    "ActivityId": "1500adde-0a5d-4065-08d9-c73f12560a25",
    "ActivityType": "Avgang",
    "Advertised": true,
    "AdvertisedTimeAtLocation": "2022-01-09T00:00:00.000+01:00",
    "AdvertisedTrainIdent": "1292",
    "Canceled": false,
    "Deleted": false,
    "EstimatedTimeIsPreliminary": false,
    "InformationOwner": "Skånetrafiken",
    "LocationSignature": "Y",
    "MobileWebLink": "http://mobil.skanetrafiken.se",
    "ModifiedTime": "2022-01-08T23:00:50.203Z",
    "NewEquipment": 0,
    "Operator": "ARRIVA",
    "PlannedEstimatedTimeAtLocationIsValid": false,
    "ScheduledDepartureDateTime": "2022-01-09T00:00:00.000+01:00",
    "TechnicalDateTime": "2022-01-09T00:00:00.000+01:00",
    "TechnicalTrainIdent": "1292",
    "TimeAtLocation": "2022-01-09T00:00:00.000+01:00",
    "TimeAtLocationWithSeconds": "2022-01-09T00:00:44.000+01:00",
    "TrackAtLocation": "2a",
    "TrainOwner": "SKANE",

    TrackAtLocation indicates the track at location "Y" (which can be looked up through their API to obtain the public name for the train station)

    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.