Singapore Bus Map
Real-time Singapore bus tracker using LTA DataMall



Overview
An interactive web application that displays real-time Singapore bus locations and bus stops around the user's current location. Provides live updates of bus arrivals and their statuses.
Features
- 📍 Current Location — Shows the user's current location on the map
- 🚏 Nearby Bus Stops — Displays all bus stops within a configurable radius
- 🚌 Live Bus Locations — Shows real-time positions of buses on the map
- ⏱️ Arrival Times — Provides estimated arrival times for upcoming buses
- 📱 Responsive Design — Works on both mobile and desktop devices
- 🔄 Real-time Updates — Refreshes bus positions automatically every 15 seconds
Usage
- Allow location access when prompted
- Adjust the radius to see more or fewer bus stops
- Click on bus stops or buses to see more information
- The map will automatically update with new bus positions
APIs Used
- Bus Stops — Retrieves all bus stop locations
- Bus Arrivals — Gets real-time bus arrival information
- Bus Services — Provides information about bus service routes
Tech Stack
- Next.js 15, React 19, TypeScript
- Leaflet for interactive maps
- LTA DataMall APIs
- Tailwind CSS, SWR for data fetching