unmonastery / untransit

Public Transport in Matera and beyond
Other
3 stars 1 forks source link

Stories in Ready

Install and run

In order to install dependencies and start the server, type the follwing commands

$ npm install
$ grunt
$ bower install
$ node server.js

Now the app is running at http://localhost:8080

Contributing

Pleaese read CONTRIBUTING.md

Setting a GTFS dataset

GTFS files are located in directory /public/data

GTFS files are grouped by cities. At the moment, you can select just one city dataset.

You need to generate json files from csv files with this command

$ grunt csv2json

You can choose which dataset to use changing app config file in /js/config/options.js

define({
  'dataset':'pavia'
});

You need to specify the name of the directory where your dataset is.

Examples

Show all stops

http://localhost:8080/stops/

Show stop pv0101 (Pavia dataset)

http://localhost:8080/stops/pv0101

When you click on a time in the stop panel, the route followed by that particular trip is highlighted.

Credits

Built with Chaplin.js