All Projects → SAUSy-Lab → retro-gtfs

SAUSy-Lab / retro-gtfs

Licence: other
Collect real-time transit data and process it into a retroactive GTFS 'schedule' which can be used for routing/analysis

Programming Languages

python
139335 projects - #7 most used programming language
lua
6591 projects
PLpgSQL
1095 projects
TSQL
950 projects
SQLPL
141 projects

Projects that are alternatives of or similar to retro-gtfs

transitland-atlas
an open directory of mobility feeds and operators — powers both Transitland v1 and v2
Stars: ✭ 55 (+22.22%)
Mutual labels:  transit, gtfs, gtfs-realtime, gtfs-rt
public-transit-tools
Tools for working with GTFS public transit data in ArcGIS
Stars: ✭ 126 (+180%)
Mutual labels:  transit, gtfs, transit-data, gtfs-rt
open-bus
🚌 Analysing Israel's public transport data
Stars: ✭ 65 (+44.44%)
Mutual labels:  transit, gtfs, transit-data
pt2matsim
Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.
Stars: ✭ 29 (-35.56%)
Mutual labels:  gtfs, public-transport, transit-data
linked-connections-server
Express based server that exposes Linked Connections.
Stars: ✭ 12 (-73.33%)
Mutual labels:  gtfs, gtfs-realtime, public-transport
goodservice
Website that detects headway discrepancy on New York City Subway system using live countdown clocks
Stars: ✭ 26 (-42.22%)
Mutual labels:  transit, gtfs, gtfs-rt
transitime
TheTransitClock real-time transit information system
Stars: ✭ 60 (+33.33%)
Mutual labels:  transit, gtfs, gtfs-realtime
concentrate
Concentrate: combine realtime transit files
Stars: ✭ 23 (-48.89%)
Mutual labels:  transit, gtfs, gtfs-realtime
ara
Ara is a golang server for real-time public transport data exchange, using the SIRI protocol.
Stars: ✭ 12 (-73.33%)
Mutual labels:  transit, gtfs-realtime, transit-data
european-transport-operators
NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
Stars: ✭ 47 (+4.44%)
Mutual labels:  transit, gtfs, public-transport
gtfs-utils
Utilities to process GTFS data sets.
Stars: ✭ 19 (-57.78%)
Mutual labels:  transit, gtfs, public-transport
theweekendest
Real-time New York City subway service map
Stars: ✭ 51 (+13.33%)
Mutual labels:  transit, gtfs, gtfs-rt
Onebusaway Application Modules
The core OneBusAway application suite.
Stars: ✭ 174 (+286.67%)
Mutual labels:  transit, gtfs
matsim-sbb-extensions
matsim swiss rail
Stars: ✭ 23 (-48.89%)
Mutual labels:  transit, public-transport
raptor
Implementation of the Route Based Public Transit Algorithm (Raptor)
Stars: ✭ 64 (+42.22%)
Mutual labels:  transit, public-transport
R5
Routing engine for multimodal (transit/bike/walk/car) networks with a particular focus on public transit.
Stars: ✭ 153 (+240%)
Mutual labels:  transit, gtfs
transport-apis
machine-readable list of transport API endpoints
Stars: ✭ 32 (-28.89%)
Mutual labels:  transit, public-transport
nepomuk
A public transit router for GTFS feeds (currently only static) written in modern c++
Stars: ✭ 22 (-51.11%)
Mutual labels:  transit, gtfs
Rrrr
RRRR rapid real-time routing
Stars: ✭ 134 (+197.78%)
Mutual labels:  transit, gtfs
transxchange2gtfs
tool to convert transxchange data into a GTFS feed
Stars: ✭ 26 (-42.22%)
Mutual labels:  transit, gtfs

retro-gtfs

Overview

This application is designed to collect real-time transit data from the NextBus API and process it into a "retrospective" or "retroactive" GTFS package. Schedule-based GTFS data describes how transit is expected to operate. This produces GTFS that describes how it did operate. The output is not directly useful for routing actual people on a network, but can be used for a variety of analytical purposes such as comparing routing/accessibility outcomes on the schedule-based vs the retrospective GTFS datasets. Measures can be derived showing the differences between the schedule and the actual operations and these could be interpretted as a measure of performance either for the GTFS package (does it accurately describe reality?) or for the agency in question (do they adhere to their schedules?).

The program was designed to ingest live-realtime data and store it in a PostgreSQL database. The data can be processed either on the fly or after the fact, and with a bit of work you should also be able to massage an outside source of historical AVL data into a suitable format.

The final output of the code is a set of CSV .txt files which conform to the GTFS standard. Specifically, we use the calendar_dates.txt file to define a unique service pattern for each day, with its own trip_id's and stop times. No two trips are exactly alike, and so there are no repeating service patterns; each day is unique. The output also includes a shapes.txt file, but as there is a unique shape for each trip, the file can become very large and you may wish to ignore it.

Using the code

As for actually using the code, please have a look at the wiki, and feel free to email Nate or create an issue if you encounter any problems.

Related projects

Related projects by other people:

Academic Research

This project was developed around work conducted for my dissertation and several academic papers have resulted from that. If you use this code as part of a published work, please cite the following paper (journal,pre-print) outlining the basic methods:

@Article{Wessel2017,
  author    = {Wessel, Nate and Allen, Jeff and Farber, Steven},
  title     = {Constructing a Routable Retrospective Transit Timetable from a Real-time Vehicle Location Feed and GTFS},
  journal   = {Journal of Transport Geography},
  year      = {2017},
  volume    = {62},
  pages     = {92-97},
  url       = {http://sausy.ca/wp-content/uploads/2017/11/retro-GTFS-paper.pdf}
}

You may also be interested in:

  • On the Accuracy of Schedule-Based GTFS for Measuring Accessibility. pre-print
  • The Effect of Route-choice Strategy on Transit Travel Time Estimates. pre-print
  • Accessibility Beyond the Schedule. pre-print

See also, similar methods used by:

  • Advancing accessibility : public transport and urban space. PDF
  • Comparing Accessibility in Urban Slums Using Smart Card and Bus GPS Data. useless TRB link
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].