Code Monkey home page Code Monkey logo

gtfs_data_pipeline's Introduction

Introduction

This repository contains code for automated downloading and storage of GTFS data, and the subsequent processing of the GTFS data into public transport network extracts covering individual cities.

This pipeline was used to reproduce data depositoted in Zenodo https://doi.org/10.5281/zenodo.1186215 (and described in paper http://doi.org/10.1038/sdata.2018.89).

The two main steps of this process are

  1. Downloading of source data (using gtfs_scrape.sh) (A separate credentials-file like credentials_template.yaml is required)
  2. Processing the downloaded data further with (extracts/create_multiple_extracts.py) (Remember also to set associated settings correctly (extracts/settings.py))

Contents of gtfs_data_pipeline/

  • download/: Downloading of GTFS-feeds.
  • extracts/: Code for importing the raw downloaded data, and transforming that data into publication extracts.
    • coordinate_corrections.csv: List of coordinates to change in the publication extracts.
    • to_publish.csv: Master specification of the extracts we will publish.
  • gtfs-sources.yaml: Data on the gtfs-sources we have been downloading.
  • gtfs_scrape.sh: Helper script to do the weekly download.
  • credentials.yaml: A (symbolic) link to the credentials (not present in the repository, create your own!)
  • credentials_template.yaml: An example credentials file.

Authors:

Rainer Kujala, Christoffer Weckström, Richard Darst

gtfs_data_pipeline's People

Contributors

rmkujala avatar

Watchers

James Cloos avatar

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.