Giter Club home page Giter Club logo

gtfs-visualizer's Introduction

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 [email protected]: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.

gtfs-visualizer's People

Contributors

andredarcie avatar

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.