MobilityData / gtfs-realtime-validator

Java-based tool that validates General Transit Feed Specification (GTFS)-realtime feeds
Other
41 stars 10 forks source link

How should a trip cancellation be represented in a vehicle positions feed? #60

Open isabelle-dr opened 2 years ago

isabelle-dr commented 2 years ago

Issue by barbeau Apr 19, 2018 Originally opened as https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/328


Summary:

From https://groups.google.com/forum/#!topic/gtfs-realtime/MhXzQyhv9Xs:

In cases where a trip is canceled, the trip_updates feed scheduled_relationship is "CANCELED" for the trip.

In the vehicle_positions feed, is it proper form to 1) remove any records about this trip (as there are no vehicles assigned to this trip) OR 2) is it acceptable to include the trip with schedule_relationship as "CANCELED" and all other information blank in order to provide consistent records?

isabelle-dr commented 2 years ago

Comment by barbeau May 12, 2018


This is also related to the broader question of whether vehicle entities should be included in GTFS-rt feeds for non-revenue trips - I posed the question here but we never came to a resolution: https://groups.google.com/forum/#!topic/gtfs-realtime/9ejXOF-5lqU

isabelle-dr commented 2 years ago

Comment by nselikoff May 23, 2018


We asked our Google Transit contact whether to include vehicle entities for non-revenue trips and received this response:

"Regarding cases where the vehicle is not assigned a vehicle or route, we usually avoid such data to display on Maps. The realtime transit data is based on the underlying static data and is relying on the route/trip information available there. Therefore, any new data that may be defined in the realtime feed may throw an error/warning."

isabelle-dr commented 2 years ago

Comment by barbeau May 23, 2018


@nselikoff Thanks for the info! So is Google implying that they may display non-revenue vehicles on the map if they are in the feed? Or just that these non-revenue vehicles would cause their validator to throw errors if they aren't assigned to trips.

To my knowledge as of today Google doesn't actually show any transit vehicles on a map, so I'm assuming it's the latter.

isabelle-dr commented 2 years ago

Comment by nselikoff May 23, 2018


@barbeau pretty sure it's the latter.

However, they're also indicating that they have recently started integrating the vehicle positions feed into Google Maps. I don't have any details beyond that they're working on it + accompanying help center docs.