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