Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
/ bandicoot Public archive

Hackathon Nov 2019 - Live map of public transport in Oslo (incomplete work)

License

Notifications You must be signed in to change notification settings

capraconsulting/bandicoot

Repository files navigation

bandicoot

Live map of public transport in Oslo.

This is early work in progress based on a Hackathon in November 2019.

npm install
npm run bootstrap
npm run watch

# Define a directory to store data. E.g:
mkdir /tmp/bandicoot-data
export STORAGE_DIR=/tmp/bandicoot-data

# Run data fetcher.
cd packages/bandicoot-fetcher
STORAGE_DIR=/tmp/bandicoot-data npm start

# Run backend-for-frontend.
cd packages/bandicoot-bff
npm start

# Run webapp.
cd packages/bandicoot-webapp
npm start

# Check the website!
# http://localhost:3000/

Screenshot of website

The map currently only shows the last reported positions for individual vehicles, and markers move around on the map when we get updated positions.

To do / ideas

  • Replace markers in map with better symbols
  • Try out Amazon EventBridge for internal events distribution
  • Draw route lines
  • Filtering and search
  • Switch to publish/subscribe for data origin
  • Predict movement when missing data
  • See historical data for some hours back in time

Port and endpoints allocation

The internal events stream implementation can be replaced with e.g. Amazon EventBridge later.

Data source

Currently using Entur Real-Time API for collecting data using the HTTP GET method (SIRI 2.0 Lite). We want to switch to the publish/subscribe mechanism, but we had not had time to find out how to do to the integration and the docs are not explaining how to do this easily.

https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370425/SIRI-VM

The "Real-Time"-iness of this data source is not good enough to produce a real-time map.

Similar services and inspiration

About

Hackathon Nov 2019 - Live map of public transport in Oslo (incomplete work)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •