Git Product home page Git Product logo

gtfs-graph's Introduction

Graphs in Transit

A study of transit system design using graph theory.

Usage

gtfs-graph requires Node.js version 7.2.1.

After cloning the repository, be sure to install the necessary dependencies.

npm install

There is an npm command to build the JavaScript bundle and start the Node.js server. These are not joined because the combine sequence takes longer than 60 seconds to complete, with is Heroku's limit on server boot time. See Other for the component commands.

npm run all

Test

A test suite of mostly unit tests is included. To run the tests:

npm test

Other

To build the JavaScript bundle without starting the server, run:

npm run build-js

Then, the Node.js server may be started.

npm start

Advanced Usage

Command-line options are available for lib/server/index.js to customize a run.

--system will load the server for only a single specified system. Default: all.

node lib/server/index.js --system MBTA

--verbosity will run the server at the specified verbosity. Default: info.

node lib/server/index.js --verbosity verbose

API

Graph

api/v0/graph/[system]?type=[type]&filter=[filter]&mode=[mode]

System
mbta
mta
ratp
Graph Type
primary
merged
theoretical-1r
theoretical-2r
theoretical-3r
theoretical-4r
theoretical-5r
Filter
stops
edges
Mode (only valid if type==merged)
accessibility
closeness
katz
page_rank

System

api/v0/system/[system]

gtfs-graph's People

Contributors

tyleragreen avatar

Stargazers

 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

gtfs-graph's Issues

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.