Best Practices: Future Entities on Trip Updates

53 views
Skip to first unread message

Josh Drucker

unread,
Sep 22, 2023, 1:45:09 PM9/22/23
to GTFS-realtime
The Trip Updates feed contains entities for all of the current trips. It is also good practice to display the upcoming trips that you are confident will occur. Normally this includes the next couple trips in the same block of a current trip.

My questions revolve around the best practices on displaying future trips.
- Some blocks are very long, how far in the future should trips be included as entities? The next couple hours, if so, how many hours? Or the entire rest of the block?
- How early should the first trip of a block show up in the Trip Updates feed? This could be a mid-day block or it could be the first trip of the day.

Thanks!

Stefan de Konink

unread,
Sep 24, 2023, 6:00:03 AM9/24/23
to gtfs-r...@googlegroups.com
Op 9/22/23 om 19:45 schreef Josh Drucker:
> My questions revolve around the best practices on displaying future trips.
> - Some blocks are very long, how far in the future should trips be
> included as entities? The next couple hours, if so, how many hours? Or
> the entire rest of the block?

If you implement a decay on your propagation, you should implement
publication until there is no influence any more. Obviously a proper
transport agency should compensate for the failures later in the block,
for example by operating the block by a second vehicle.

> - How early should the first trip of a block show up in the Trip Updates
> feed? This could be a mid-day block or it could be the first trip of the
> day.

When there is information different than the schedule.

--
Stefan

OpenPGP_0xDA0A21EE7E3D2959.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages