Data viewer for gtfs [] (https://codeclimate.com/github/AndreNDarcie/gtfs-visualizer)
🚌 Library responsible for generating HTML data based on the GTFS format. Depends on this API.
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.
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.
- Draw Agency Stop: Draws a stop on the map, with the position and agency name.
Generator.drawAgencyStop(data);
- Draw Agency Popup: Draws a popup on the stop, with the agency's information.
Generator.drawAgencyPopup(data);
- Draw Routes List: Generates the HTML code a list of routes.
Generator.drawRoutesList(data);
- Draw Shapes: Draws on the map a line between the points of shape.
Generator.drawShapes(data);
- Draw Stops: Draws on the map all the stops in a route.
Generator.drawStops(data);
- Draw Stops Popup: Draws a popup on the stop, with the stop information.
Generator.drawStopsPopup(stop_id,stop_name,stops_desc);
- Draw Stops Near: Draw the stops near of other stop.
Generator.drawStopsNear(data);
The gtfs-visualizer is available as open source under the terms of the MIT License.