A real-time Singapore bus arrival information application built with Next.js, TypeScript, and Tailwind CSS. This application integrates with LTA's DataMall API to provide accurate bus arrival timings and service information.
- Real-time bus arrival information
- Support for all Singapore bus stops
- Bus load status indicators
- Wheelchair accessibility information
- Bus type information (Single Deck, Double Deck, Bendy)
- Responsive design with modern UI
- Node.js 18.x or later
- LTA DataMall API Key (Register here)
- Clone the repository
git clone <repository-url>
cd temp-next- Install dependencies
npm install- Set up environment variables
Create a .env.local file in the root directory and add your LTA DataMall API key:
NEXT_PUBLIC_LTA_API_KEY=your_api_key_here- Start the development server
npm run devOpen http://localhost:3000 with your browser to see the application.
- Enter a valid Singapore bus stop code in the search box
- View real-time arrival information for all bus services at the stop
- Check the load status indicators:
- 🟢 Seats Available
- 🟡 Standing Available
- 🔴 Limited Standing
- Additional information icons:
- ♿ Wheelchair Accessible Bus
- 🕰️ Scheduled Arrival (Not Real-time)
- Next.js - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- LTA DataMall API - Bus arrival data
Contributions are welcome! Please feel free to submit a Pull Request.