Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kelvan/pyosm
Python library for parsing opening_hours field in openstreetmap
https://github.com/kelvan/pyosm
Last synced: 3 months ago
JSON representation
Python library for parsing opening_hours field in openstreetmap
- Host: GitHub
- URL: https://github.com/kelvan/pyosm
- Owner: kelvan
- Created: 2011-09-22T21:31:06.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-04T11:18:39.000Z (almost 13 years ago)
- Last Synced: 2024-08-02T22:22:12.747Z (7 months ago)
- Language: Python
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-github-repos - kelvan/pyosm - Python library for parsing opening_hours field in openstreetmap (Python)
README
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.pyExtract public transport from osm file and save stations and their position to sqlite
Used by gotoviennaTo 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_commandNote: If you are using Arch Linux change python to python2