Skip to content
Data viewer based on GTFS format.
HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
img
js
vendor
.gitignore
LICENSE
README.md
documentation.html
gulpfile.js
index.html
package.json
plantrip.html

README.md

GTFS Visualizer

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

🚌 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

  • Draw Agency Stop: Draws a stop on the map, with the position and agency name.
  Generator.drawAgencyStop(data);

Agency Stop

  • Draw Agency Popup: Draws a popup on the stop, with the agency's information.
  Generator.drawAgencyPopup(data);

Agency Popup

Routes

  • Draw Routes List: Generates the HTML code a list of routes.
  Generator.drawRoutesList(data);

Routes List

  • Draw Shapes: Draws on the map a line between the points of shape.
  Generator.drawShapes(data);

Shapes

  • Draw Stops: Draws on the map all the stops in a route.
  Generator.drawStops(data);

Shapes

  • Draw Stops Popup: Draws a popup on the stop, with the stop information.
  Generator.drawStopsPopup(stop_id,stop_name,stops_desc);

Shapes

Plan a Trip

  • Draw Stops Near: Draw the stops near of other stop.
  Generator.drawStopsNear(data);

Result

GTFS Visualizer

License

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

You can’t perform that action at this time.