Home

Awesome

GTFS Visualizer

Data viewer for gtfs [CodeClimate] (https://codeclimate.com/github/AndreNDarcie/gtfs-visualizer) IssueCount

:bus: Library responsible for generating HTML data based on the GTFS format. Depends on this API.

GTFS Overview

The General Transit Feed Specification (GTFS), also known as GTFS static or static transit to differentiate it from the GTFS realtime extension, defines a common format for public transportation schedules and associated geographic information. GTFS "feeds" let public transit agencies publish their transit data and developers write applications that consume that data in an interoperable way. (from google developers)

Read more about here.

Getting started

Clone from github:

git clone git@github.com:andredarcie/gtfs-visualizer.git

cd gtfs-visualizer

Start the database with agency's data:

mongod

Start the node gtfs api:

node index.js

Configure the js/settings.js file

Open the index.html in your browser

(Optional) Gulp task runner

npm install

// Run gulp:
gulp

// To run individual tasks:
gulp <task> <othertask>

This example depends on Bootstrap, jQuery, Leaflet, typeahead and Gulp.

Library Functions

Agencies

  Generator.drawAgencyStop(data);

Agency Stop

  Generator.drawAgencyPopup(data);

Agency Popup

Routes

  Generator.drawRoutesList(data);

Routes List

  Generator.drawShapes(data);

Shapes

  Generator.drawStops(data);

Shapes

  Generator.drawStopsPopup(stop_id,stop_name,stops_desc);

Shapes

Plan a Trip

  Generator.drawStopsNear(data);

Result

GTFS Visualizer

License

The gtfs-visualizer is available as open source under the terms of the MIT License.