Jungle-Bus / transport-hours-py

Python library for reading public transport routes hours from OSM, and exports them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle duration tag parsing

nlehuby opened this issue · comments

The interval and the duration tags both represent an amount of time and have almost the same syntax.
In the context of public transport hours from OSM, the duration tag is the time to travel from the first stop to the last one, and can be used to compute the effective times at stops.

It could be cool to extend the intervalStringToMinutes function (that turns an interval tag into a number of minutes) so it can be used to parse the duration tag too.

the intervalStringToMinutes can be used as is on a duration tag too so I don't think a new feature is actually needed here.