MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
288 stars 101 forks source link

Check the distance between first/last stop and first/last shape point #1922

Open tzujenchanmbd opened 1 week ago

tzujenchanmbd commented 1 week ago

Describe the problem

The shape data is presented to end users to help them understand the path taken by the vehicle. The first/last shape points should be close enough to the first/last stops. However, we have observed that some shapes do not depict the accurate starting and ending locations.

Describe the new validation rule

There needs to be threshold value(s) for this proposed rule. E.g.

If [the distance between first stop and first shape point > x meters] OR [the distance between last stop and last shape point > x meters] Trigger the error (or warning)

It would be great to have analytical insights (distance distribution) before determining threshold value.

Sample GTFS datasets

No response

Severity

There could be different threshold values for error and warning

Additional context

No response