Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grote/osm2gtfs
Turn OpenStreetMap data and schedule information into GTFS
https://github.com/grote/osm2gtfs
gtfs openstreetmap public-transportation python schedule
Last synced: 3 days ago
JSON representation
Turn OpenStreetMap data and schedule information into GTFS
- Host: GitHub
- URL: https://github.com/grote/osm2gtfs
- Owner: grote
- License: gpl-3.0
- Created: 2016-07-11T21:07:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T16:07:07.000Z (9 months ago)
- Last Synced: 2024-05-02T00:28:54.239Z (8 months ago)
- Topics: gtfs, openstreetmap, public-transportation, python, schedule
- Language: Python
- Size: 38.8 MB
- Stars: 97
- Watchers: 12
- Forks: 31
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- open-sustainable-technology - osm2gtfs - Turn OpenStreetMap data and schedule information into GTFS. (Consumption / Mobility and Transportation)
README
osm2gtfs
========[![Build Status](https://travis-ci.org/grote/osm2gtfs.svg?branch=master)](https://travis-ci.org/grote/osm2gtfs)
Use public transport data from [OpenStreetMap](http://www.openstreetmap.org/)
and external schedule information
to create a General Transit Feed ([GTFS](https://developers.google.com/transit/gtfs/)).The official source code repository is at [github.com/grote/osm2gtfs](https://github.com/grote/osm2gtfs).
How does it work?
-----------------The script retrieves current data about public transport networks directly from
OpenStreetMap via the Overpass API. It stores the data in python objects and
caches on disk for efficient re-use. Then the data is combined with another
source of schedule (time) information in order to create a GTFS file using the
transitfeed library.For every new city a new [configuration file](https://github.com/grote/osm2gtfs/wiki/Configuration)
needs to be created. Additionally, schedule information should be provided. By-default the schedule information is expected to be provided in a [certain format](https://github.com/grote/osm2gtfs/wiki/Schedule). However other formats are supported through extending the code. For any city and schedule format the script can be easily extended, see the
[developer documentation](https://github.com/grote/osm2gtfs/wiki/Development)
for more information.Included cities
-----------------* [Florianópolis, Brazil](./osm2gtfs/creators/br_florianopolis/config.json)
* [Suburban trains in Costa Rica](./osm2gtfs/creators/cr_gam/config.json)
* [Accra, Ghana](./osm2gtfs/creators/gh_accra/readme.md)
* [Managua, Ciudad Sandino](./osm2gtfs/creators/ni_managua/config.json) and [Estelí](./osm2gtfs/creators/ni_esteli/config.json) in Nicaragua
* [Abidjan, Ivory Coast](./osm2gtfs/creators/ci_abidjan/README.md)*Soon, also in your city*
Install
------------Install by running
pip install -e .
Requirements
------------
Automatically installed by the previous step:
* https://github.com/DinoTools/python-overpy
* https://github.com/google/transitfeedUse
------------osm2gtfs -c
Example:
osm2gtfs -c osm2gtfs/creators/br_florianopolis/config.json
License
-------![GNU GPLv3 Image](https://www.gnu.org/graphics/gplv3-127x51.png)
This program is Free Software: You can use, study share and improve it at your
will. Specifically you can redistribute and/or modify it under the terms of the
[GNU General Public License](https://www.gnu.org/licenses/gpl.html) as
published by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.