- OS: Ubuntu 20.04 LTS (Focal Fossa)
- Language: Python 3.8
- Web App: Flask 2.3.1
- WSGI: Gunicorn (Latest)
- Reverse Proxy: Nginx (Latest)
GTFS Realtime API Keys:
- New York, NY (MTA)
- Washington DC (WMATA)
- Los Angeles, CA & Miami, FL (Swiftly)
- San Francisco, CA (MTC)
- San Diego, CA (MTS)
- Portland, OR (TriMet)
- Phoenix, AZ (Valley Metro)
- Montreal, QC (STM)
- Vancouver, BC (TransLink)
- Stockholm, Sweden (Trafiklab)
- Dublin, Ireland (NTA)
- Sydney, Australia (NSW)
- Auckland, New Zealand (AT)
- Christchurch, New Zealand (ECan)
- Delhi, India (DTC)
-
Obtain the required GTFS Realtime API Keys from the list in the Requirements section. The supporting links can be found below in the Support section.
-
Using the
.env.example
file in the./ext
service folder, rename it to.env
and create an environment variable for each API key as follows. This is a strict naming convention.
export API_KEY_NYC=
export API_KEY_DCA=
export API_KEY_LBM= ## la and miami same key
export API_KEY_SFO=
export API_KEY_SAN=
export API_KEY_PDX=
export API_KEY_PHX=
export API_KEY_YUL=
export API_KEY_YVR=
export API_KEY_ARN=
export API_KEY_DUB_A= ## requires toggling
export API_KEY_DUB_B= ## between two keys
export API_KEY_SYD=
export API_KEY_AKL=
export API_KEY_CHC=
export API_KEY_DEL=
- Build and execute the Docker container using the following command:
docker-compose up --build -d extract
GTFS Realtime REST API endpoints are developed and maintained by the following transit agencies. This is where to obtain the GTFS Realtime API Keys.
- New York, NY (MTA): http://bt.mta.info/wiki/Developers/GTFSRt
- Philadelphia, PA (SEPTA): https://www3.septa.org/#/
- Washington, DC (WMATA): https://developer.wmata.com/docs/services/gtfs/operations/5cdc52139e0b4de98fdfd54a?
- Boston, MA (MBTA): https://www.mbta.com/developers/gtfs-realtime
- Pittsburgh, PA (PRT): https://www.rideprt.org/business-center/developer-resources/
- Los Angeles, CA (Metro): https://developer.metro.net/api/
- San Francisco Bay Area, CA (MTC): https://511.org/open-data/transit
- San Diego, CA (MTS): https://www.sdmts.com/business-center/app-developers/real-time-data
- Seattle, WA (King County Metro): https://kingcounty.gov/en/dept/metro/rider-tools/mobile-and-web-apps
- Sacramento, CA (SacRT): https://www.sacrt.com/schedules/gtfs.aspx
- Portland, OR (TriMet): https://developer.trimet.org/GTFS.shtml
- Atlanta, GA (MARTA): https://www.itsmarta.com/app-developer-resources.aspx
- Miami, FL (MDT): https://www.miamidade.gov/global/transportation/open-data-feeds.page
- Tampa, FL (HART): https://github.com/CUTR-at-USF/HART-GTFS-realtimeGenerator
- Louisville, KY (TARC): https://www.ridetarc.org/developers/
- Nashville, TN (Nashville MTA): https://www.wegotransit.com/contact-us/data-request-submission/
- Minneapolis-St. Paul, MN (Metro Transit): https://svc.metrotransit.org/
- St. Louis, MO (Metro Transit): https://www.metrostlouis.org/developer-resources/
- Madison, WI (Metro Transit): https://www.cityofmadison.com/metro/business/information-for-developers
- Columbus, OH (COTA): https://www.cota.com/data/
- Des Moines, IA (DART): https://www.ridedart.com/developer-resources
- Denver, CO (RTD): https://www.rtd-denver.com/open-records/open-spatial-information/real-time-feeds
- Phoenix, AZ (Valley Metro): https://www.phoenixopendata.com/dataset/general-transit-feed-specification
- San Antonio, TX (VIA Metro): https://www.viainfo.net/developers-resources/
- Austin, TX (CapMetro): https://data.texas.gov/Transportation/CapMetro-Vehicle-Positions-PB-File/eiei-9rpf/about_data
- Billings, MT (MET): https://www.billingsmt.gov/3042/MET
- Montreal, QC (STM): https://www.stm.info/en/about/developers
- York Region, ON (YRT): https://www.yrt.ca/en/about-us/open-data.aspx
- Hamilton, ON (HSR): https://open.hamilton.ca/documents/6eeccf172c824c2db0484aea54ed7fe4/about
- Halifax, NS (Halifax Transit): https://data-hrm.hub.arcgis.com/pages/open-data-downloads
- Thunder Bay, ON (Thunder Bay Transit): https://www.thunderbay.ca/en/city-services/developers---open-data.aspx
- Vancouver, BC (TransLink): https://www.translink.ca/about-us/doing-business-with-translink/app-developer-resources/gtfs/gtfs-realtime
- Calgary, AB (Calgary Transit): https://data.calgary.ca/Transportation-Transit/Calgary-Transit-Realtime-Trip-Updates-GTFS-RT/gs4m-mdc2/data
- Edmonton, AB (ETS): https://data.edmonton.ca/Transit/Real-Time-Vehicle-Position-GTFS-PB-File-/uyt2-vrrn/about_data
- Saskatoon, SK (Saskatoon Transit): https://transit.saskatoon.ca/about-us/open-data-saskatoon-transit
- Amsterdamn, Netherlands (OVapi): https://gtfs.ovapi.nl/nl/
- Stockholm, Sweden (SL): https://www.trafiklab.se/api/trafiklab-apis/gtfs-regional/realtime-specification/
- Helsinki, Finland (HSL): https://hsldevcom.github.io/gtfs_rt/
- Dublin, Ireland (National Transport Authority): https://developer.nationaltransport.ie/apis
- Rome, Italy (ATAC): https://romamobilita.it/it/tecnologie
- Warsaw, Poland (Miasto Stołeczne Warszawa): https://mkuran.pl/gtfs/
- Krakow, Poland (ZTP Krakow): https://gtfs.ztp.krakow.pl/
- Gdansk, Poland (ZTM Gdańsk): https://ckan.multimediagdansk.pl/dataset/tristar/resource/976e1fd1-73d9-4237-b6ba-3c06004d1105?inner_span=True
- Prague, Czech Republic (PID): https://pid.cz/o-systemu/opendata/
- New South Wales, Australia (Transport for NSW): https://opendata.transport.nsw.gov.au/dataset/public-transport-realtime-vehicle-positions-v2
- Queensland, Australia (Translink): https://translink.com.au/about-translink/open-data/gtfs-rt
- Adelaide, Australia (Adelaide Metro): https://gtfs.adelaidemetro.com.au/
- Auckland, New Zealand (AT): https://dev-portal.at.govt.nz/realtime-api
- Christchurch, New Zealand (ECan): https://apidevelopers.metroinfo.co.nz/api-details#api=gtfs-realtime-service&operation=vehicle-positions
- Delhi, India (DTC): https://otd.delhi.gov.in/documentation/