OneBusAway / onebusaway

Parent module for all OneBusAway projects with common configuration information.
https://github.com/OneBusAway/onebusaway/wiki
Other
336 stars 72 forks source link

GTFS Flex V1 Support of Null stop_id in stop_time if there is a service area provided #17

Closed mmaranda-cs closed 3 years ago

mmaranda-cs commented 3 years ago

Per the GTFS Flex Spec a, technically, correct interpretation is that the stop_id in stop_times.txt can be null if there is a start or end service area provided. Although most agencies have followed the suggestion to include a phantom stop in the middle of the service area proper adherence to the spec does not require it.

To support that I propose making the stop_id optional. Then after reading in the GTFS validate that all provided stop_times have a stop_id unless the entry includes a start or end service_area.

mmaranda-cs commented 3 years ago

Should not have been created here.