Handle duration tag parsing
nlehuby opened this issue · comments
Noémie commented
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.
Noémie commented
the intervalStringToMinutes
can be used as is on a duration
tag too so I don't think a new feature is actually needed here.