Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OpenTransitTools/gtfsdb_realtime
Real-time GTFS database loader and ORM library.
https://github.com/OpenTransitTools/gtfsdb_realtime
Last synced: 2 days ago
JSON representation
Real-time GTFS database loader and ORM library.
- Host: GitHub
- URL: https://github.com/OpenTransitTools/gtfsdb_realtime
- Owner: OpenTransitTools
- License: other
- Created: 2015-04-10T21:44:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T22:15:29.000Z (about 1 year ago)
- Last Synced: 2024-03-26T21:56:28.322Z (10 months ago)
- Language: Python
- Homepage:
- Size: 226 KB
- Stars: 9
- Watchers: 6
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
- trackawesomelist - gtfsdb\_realtime (⭐11) - Real-time GTFS database loader and ORM library (Recently Updated / [Jan 22, 2025](/content/2025/01/22/README.md))
README
GTFSDB Realtime
===Supported Databases
---- PostgreSQL (PostGIS for Geo tables) - preferred
- SQLite - not tested yet
- Oracle - not tested yet
- MySQL - not tested yetGTFS REALTIME (General Transit Feed Specification) Database
--Python code that will load GTFS-realtime data into a relational database, and SQLAlchemy ORM bindings to the GTFS tables in the gtfsdb.
See https://developers.google.com/transit/gtfs-realtime/Install and use via the gtfsdb source tree:
---1. Install Python 2.7, easy_install and buildout on your system...
1. git clone https://github.com/OpenTransitTools/gtfsdb_realtime.git
1. cd gtfsdb_realtime
1. buildout (note: if you're using postgres, do a 'buildout install prod pg')Run TriMet example:
---
1. get a TriMet api key: http://developer.trimet.org/appid/registration/
1. bin/gtfsdb-rt-loader -a TRIMET -d postgresql+psycopg2://[email protected]:5432/ott --api_key -c ### NOTE: create rt_ tables and populate all services
1. bin/gtfsdb-rt-loader -a TRIMET -d postgresql+psycopg2://[email protected]:5432/ott --api_key -t None -v null ### NOTE: just update the Alerts data (skip trip and vehicle updates)TODO: to get the route_short_names into the db right now (for alerts), have to run -c (create tables)
cd ~/loader; bin/gtfsrt-load -d loc -a trimet -ak B393B2CE96A258A72BAB481CA -turl null -c