Giter Site home page Giter Site logo

residentmario / gtfs-tripify Goto Github PK

View Code? Open in Web Editor NEW
44.0 5.0 3.0 7.17 MB

Turn GTFS-RT transit updates into historical arrival data.

Home Page: https://residentmario.github.io/gtfs-tripify/index.html

License: MIT License

Python 100.00%
transit-data gtfs-realtime gtfs open-data

gtfs-tripify's Introduction

gtfs-tripify t PyPi version docs

Many major transit municipalities in the United States public realtime information about the state of their systems using a common format known as a GTFS-Realtime feed. This is the information that the Metropolitan Transit Authority, for example, uses to power its arrival countdown clocks on station platforms.

gtfs-tripify is a Python package for turning streams of GTFS-Realtime messages into a "trip log" of train arrival and departure times. The result is the ground truth history of arrivals and departures of all trains included in the inputted GTFS-RT feeds:

To learn more about gtfs_tripify check out the docs.

Note that gtfs_tripify is an experimental (unmaintained) library. It is provided as-is.

gtfs-tripify's People

Contributors

residentmario avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gtfs-tripify's Issues

Deal with misaligned triplines

A highly visible parsing artifact are trips which are for some reason coded as going linearly and then backwards in time:

Screen Shot 2019-11-09 at 10 48 31 PM

pip install unsuccessful under python2.7 and python3.7 in virtualenvironment

Under python2.7:

virtualenv test2env
source test2env/bin/activate
pip install git+git://github.com/ResidentMario/gtfs-tripify.git@master
python -c "import gtfs_tripify"

This produces

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named gtfs_tripify

Similarly under python3.7:

/usr/local/bin/python3 -m venv test-env
source test-env/bin/activate
pip install git+git://github.com/ResidentMario/gtfs-tripify.git@master
python -c "import gtfs_tripify"

This produces an identical error. The installation is creating only an egg-info directory in site-packages, not a gtfs_tripify source directory. I'm a novice when it comes to python packaging, so it's probably my mistake or could be an easy fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.