Skip to content

Simple Web App to track TUB buses in real-time, using their scraped API.

Notifications You must be signed in to change notification settings

Darguima/TUB-Bus-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TUB Bus Tracker

Simple Web App to track TUB buses in real-time, using their scraped API.

Try now here 🌐 or watch the demo 🎥 down below.

What's TUB?

TUB (Transportes Urbanos de Braga) is the public Bus company of Braga, Portugal.

The history

At the start of 2024, TUB launched a new App where is available the feature of track buses in real-time, however, just one route once.

The idea here was to join all the routes in one map at once to track all the buses at the same time and on the same map.

How?

Well, with HTTPToolkit, F-Droid, Aurora Store and an Android Emulator I passed all the App traffic over a proxy, found out the API endpoints and now I can just use them. Simple! :)

All this workaround is needed because Android don't allow proxy the traffic from Apps when the PlayStore is available on the system.

The endpoints scraped are:

Endpoint Description
https://mobibus-gateway.ndrive.com/busLocation/${route number} Returns the location of all the buses on this route. Well, you also need their key, but that you will nee to find out

Demo

Just watch!

2024-05-18.16-09-20.mp4

Deploy

Just clone and serve the files. For example:

$ git clone git clone [email protected]:Darguima/TUB-Bus-Tracker.git
$ python3 -m http.server

And now access localhost:8000.

About

Simple Web App to track TUB buses in real-time, using their scraped API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published