MobilityData / gtfs-realtime-validator

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

Improve E029 - ignore when vehicle is close to trip start/end #72

Open isabelle-dr opened 2 years ago

isabelle-dr commented 2 years ago

Issue by barbeau Feb 14, 2020 Originally opened as https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/367


Summary:

Based on feedback from agencies, it's more useful to know if position is off-shape in middle of trip, not on way to or from trip (within reason). Some agencies might use this in real-time to create detour alerts, if they could detect that the vehicle was off-route. However, if the driver signs on a bit early, or late, this isn't of interest.

A possible solution to this is to draw a circular buffer around the first and last point of the trip, which has a bigger radius than the trip buffer, and ignore any points within those circles.

Steps to reproduce:

Run validator on trip with vehicle position near start/end

Expected behavior:

Ignore these, focus more on points off the middle of the trip

Observed behavior:

Points near trip start/end are flagged