Public Transport in Matera and beyond
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.bowerrc
.editorconfig
.gitignore
.gitmodules
CONTRIBUTING.md
Gruntfile.js
MIT-LICENSE.txt
README.md
TODO.txt
bower.json
package.json
server.js

README.md

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