Skip to content

This web app is based on telematics.oasa.gr API and is developed for demo and educational purposes. In the beginning, app displays a Main list with all bus Lines in Athens ordered by lineID. Clicking on a bus Line is displayed a list with it's Routes (usually 2 Routes: go & return), clicking a Route is displayed a list with the bus Stops in Rout…

Notifications You must be signed in to change notification settings

GiannisClipper/bus-arrivals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This web app is based on telematics.oasa.gr API and is developed for demo and educational purposes.

In the beginning, app displays a Main list with all Bus Lines in Athens ordered by lineID. Clicking a Bus Line is displayed a list with it's Routes (usually 2 Routes: go & return), clicking a Route is displayed a list with the Bus Stops in Route and finally clicking a Stop are displayed Bus Arrivals expected there. Clicking a selection again, the corresponded list get closed.

Each Bus Arrivals list getting refreshed every 20 seconds. App hides these lists and stops auto refresh after 3-4 minutes in order to control forgotten Bus Arrivals lists and infinity requests.

App keeps in memory 6 most recent Stop selections and displays them at the bottom of the Main list offering fast access to them. They are stored in browser's locastorage to be available in future app executions and can be deleted by clicking on their icons.

Also, there is a menu with single digits sticky at the bottom of the viewport. When a digit is selected Main list is scrolled to Bus Lines with lineID starting with it. Digits are from 0 to 9, A for alpharithmitical and M for most recent bus Stop selections.

API requests commited via gc-info.herokuapp.com (custom server written in Flask/Python) to bypass Cross Origin blocks.

Live demo https://giannisclipper.github.io/bus-arrivals

Athens 8 Feb 2019, Giannis Clipper

About

This web app is based on telematics.oasa.gr API and is developed for demo and educational purposes. In the beginning, app displays a Main list with all bus Lines in Athens ordered by lineID. Clicking on a bus Line is displayed a list with it's Routes (usually 2 Routes: go & return), clicking a Route is displayed a list with the bus Stops in Rout…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published