Skip to content

ottoo/TreTrafficBackend

Repository files navigation

Tampere bus traffic backend

Dependency Status devDependency Status

A small backend proxy for providing Tampere (Finland) area bus traffic.

Hosting OpenStreetMap Vector Tiles

This application hosts its own OpenStreetMap tiles and uses them to display the map via mapbox-gl library. Due to the size of the tiles, they are not included in the repository, but can be downloaded from https://openmaptiles.com/downloads/planet/.

The tileserver GUI can be accessed on http://localhost:8080 after running docker-compose up in /docker folder.

HapiJS

To run the app, first do

npm install

To run the server and watch for changes (you need to have nodemon installed), run

npm run server:watch

To run just the server, run

npm run server

Mock data can be found from

http://[hostname]:[port]/api/mocks

Real traffic data can be accessed from where lineRef takes a comma separated string of lines. If no lines are specified, returns all the available traffic.

http://[hostname]:[port]/api/lines?lineRef=3,4,12

About

Backend proxy for Tampere bus traffic data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published