Logo

TUB Bus Tracker thumbnail

TUB Bus Tracker

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

View Demo ยท Start Developing

โญ Don't forget to Starring โญ

JavaScript

๐Ÿ” About The Project

๐ŸŽฏ The goal

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 it works?

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:

EndpointDescription
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