staeco / gtfs-stream

Streaming GTFS and GTFS-RT parser for node
MIT License
30 stars 6 forks source link

Attributes of form "HH:MM:SS" in stop_times.txt ignored because it contains ":" character #6

Open Mchristos opened 3 years ago

Mchristos commented 3 years ago

When reading in stop_times.txt the objects of type "stop_time" has no attributes for arrival_time and departure_time. This is because they take the form of a time of day specified as "HH:MM:SS", e.g. 13:39:41. If I remove the ":" character, the attribute exists as a number

yocontra commented 3 years ago

Thanks for the report - sorry for the delay in getting back to you, work has been extra busy. I have this on my backlog and I'll look into it soon!

Mchristos commented 3 years ago

No probs. I got around the issue for now by using gtfs({raw: true})