GTFS-RT - Departure Times Accuracy

First of all, thanks the maintainers for all the work in building these powerful APIs.

We have been looking to transition our project from `transport.integration.sl.se` APIs to the GTFS datasets. It mostly works great (if not better). The only discrepancy is in the Realtime departure times:
- SL APIs somehow track when the bus actually left the station, returning the departure marked as "Nu" until then;
- The GTFS RT APIs instead remove a departure as soon as the departure time hits zero, even if the bus is still in the process of approaching and then letting people in.
In other works, GTFS RT removes imminent departures too soon, sometimes minutes before the bus even reaches the station.

We wonder if SL APIs use vehicle GPS position to be more precise in their result, and if GTFS RT could in the future mimic the SL RT departures more closely for better accuracy.

Curious if other encountered the same and if we can improve this.

Thanks
Fabrizio Demaria

Kommentarer

  • Hi Fabrizio,

    The GTFS-RT APIs should return all departures up till 10 minutes in the past. Once a departure/arrival has been observed, uncertainty for that departure/arrival is set to "0".

    For example the following stop time update defines an observed arrival and observed departure where the bus was 6 seconds eary and 38 seconds late compared the scheduled date.

    stop_time_update {
    stop_sequence: 24
    arrival {
    delay: -6
    time: 1754989554
    uncertainty: 0
    }
    departure {
    delay: 38
    time: 1754989598
    uncertainty: 0
    }
    stop_id: "9022001000177001"
    }

    In other works, GTFS RT removes imminent departures too soon, sometimes minutes before the bus even reaches the station.

    Is this compared to a bus which you observed outdoors, compared to the GPS positions on Trafiklab, or compared to the SL API? If the latter is the case, is it possible the SL API is actually a bit slower and reports the departure after it has taken place?

    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.