Adventures in Data: Tackling the TEC Network #3

Sometimes, less is more. Initially, I was all about showcasing every single bus in real-time on the map. Cool, right? But then it hit me – it's a bit of an overload for someone just trying to navigate from point A to point B.

So, here's the twist: I've added a new feature to our digital map. Imagine a tab that, with a single click, sweeps away the clutter of moving buses, leaving only the bus stops. It gets better: Click on a stop, and you'll see a list of buses that are due or have already passed. This way, you're in the know – no more waiting for a bus that's already zipped past your stop.

First Challenge: Displaying the Stops

After running some test and tweaking the max number of stops per node, we ended up with a quadtree that took on average 2µs to find a few bus stops to 100µs with even more while the naive method stuck with 400µs to 5ms. We can see that the quadtree is way more efficient than the naive method.

Second Challenge: Getting Buses Per Stop

Some Fixes!

Back to index