SVTransit is a simple web application that monitors local public transport in Suceava in real time.
The project displays buses on an interactive map using live data retrieved from an API.
- Real-time bus tracking
- Interactive map powered by Leaflet
- Automatic data refresh every 5 seconds
- Bus details (ID, provider, line, online status)
- Next.js
- React
- TypeScript
- React-Leaflet
- OpenStreetMap
- The frontend requests bus data from
/api/getTplData. - The API returns the current list of buses with coordinates.
- Buses are displayed as markers on a map of Suceava.
- Data refreshes automatically every 5 seconds.
npm install
npm run devvOpen http://localhost:3000 to view the app in the browser.