pszufe / OpenStreetMapX.jl

OpenStreetMap (*.osm) support for Julia 1.0 and up
MIT License
118 stars 24 forks source link

extracting public transport timetable and HOV lane #61

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi, Is there any specific command in OpenStreetMap.jl package to allow for extracting public transportation routes as well as their timetable? For example, the timetable and routes of all buses in New York City?
And how to extract all nodes in the network (like NYC) that are part of HOV lanes?

pszufe commented 2 years ago

Hi, extracting public transportation routes would require extending the amount of data parsed from the XML file. This is not present in the library but should be relatively easy to do. The timetables are not present in the OSM data as far as I know so you should look for other data sources.

ghost commented 2 years ago

Hi @pszuf thank you. Can you please give me a bit of info on how to extend the amount of data parsed from the XML file? And do you know any data resources for timetable?

pszufe commented 2 years ago

I guess the lines are presented as Ways and Relations just having a different type. Hence you would need to extend the event handling in XML parsing at https://github.com/pszufe/OpenStreetMapX.jl/blob/master/src/parseMap.jl
Regarding data perhaps start with: https://www.transitwiki.org/TransitWiki/index.php/Publicly-accessible_public_transportation_data

ghost commented 2 years ago

Hi again @pszufe Thanks a lot!