Skip to content
/ pyosm Public

Python library for parsing opening_hours field in openstreetmap

Notifications You must be signed in to change notification settings

kelvan/pyosm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parser for openstreetmap opening_hours field
see http://wiki.openstreetmap.org/wiki/Key:opening_hours#Syntax
you will need ebnf.py from http://pyparsing.wikispaces.com/file/view/ebnf.py

Extract public transport from osm file and save stations and their position to sqlite
Used by gotovienna

To create station.db for gotovienna get austria.osm from http://download.geofabrik.de/osm/europe/ and run something like:

$ osmosis --read-xml enableDateParsing=no file=austria.osm --bounding-box top=48.322 left=16.185 bottom=48.115 right=16.578 --write-xml file=vienna.osm
$ python publictransport.py vienna.osm
$ python sql_import.py file_created_by_last_command

Note: If you are using Arch Linux change python to python2

About

Python library for parsing opening_hours field in openstreetmap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages