:bus: 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 [email protected]:andredarcie/gtfs-visualizer.git cd gtfs-visualizer
Start the database with agency’s data:
Start the node gtfs api:
Open the index.html in your browser
(Optional) Gulp task runner
npm install // Run gulp: gulp // To run individual tasks: gulp <task> <othertask>
- Draw Agency Stop: Draws a stop on the map, with the position and agency name.
- Draw Agency Popup: Draws a popup on the stop, with the agency’s information.
- Draw Routes List: Generates the HTML code a list of routes.
- Draw Shapes: Draws on the map a line between the points of shape.
- Draw Stops: Draws on the map all the stops in a route.
- Draw Stops Popup: Draws a popup on the stop, with the stop information.
Plan a Trip
- Draw Stops Near: Draw the stops near of other stop.
The gtfs-visualizer is available as open source under the terms of the MIT License.