linkedconnections / gtfs2lc

GTFS to Linked Connections converter
http://linkedconnections.org
MIT License
28 stars 14 forks source link

Interpolation support #109

Open julianrojas87 opened 4 years ago

julianrojas87 commented 4 years ago

Is valid GTFS to define stop_times with both empty arrival_time and departure_time. However we cannot have Connections with empty departure or arrival times.

According to the spec, this implies that the consumer needs to interpolate these stop times, which is difficult in this case given that Connections are created in a streaming way.

A possible fix could be to do this as part of the pre-processing step that already takes place to order stop_times. Reusing an existing tool that handles this scenario, might make things easier.