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

suggestion GTFS-RT trip-updates

I'm transitioning to the GTFS-RT trip-updates (https://www.trafiklab.se/api/trafiklab-apis/gtfs-regional/realtime/) to receive real-time information for Stockholm, but I have a suggestion. Very few trips include the route_id attribute in the trip section, making it difficult to filter by route and leading to large responses that often time out. Can you take any steps to address this issue?
silvia

Kommentarer

  • Hi Silvia,

    If anything, the abscence of route_id in GTFS Realtime data means the files are smaller and faster to parse. It seems like you are talking about internal services not being able to handle this when you talk about "time outs". In this case I'd recommend you discuss this with the person responsible for the internal services consuming this data, as this is a problem on the client-side.

    As I stated before to your collegue Othmane (https://support.trafiklab.se/org/trafiklabse/d/gtfs-regional-realtime-data-tripupdates/), looking up a route_id for a given trip_id is trivial on the client side and can be done in constant time. This should therefore not have a significant impact on the client-side performance.

    Adding the field on our side would only add to the file size without adding additional information, while risking to impact performance and reliability in a negative way.

    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.