TransportLive is an application that fetches real-time transport data from the new Societate de Transport București (STB) API. By entering a station ID, the app displays the upcoming vehicles and their estimated arrival times, helping you plan your journey in Bucharest with ease.
- Fetches real-time transport data from the STB API.
- Displays upcoming vehicles at a specific station.
- Shows the estimated arrival times of vehicles at the station.
- Simple and intuitive user interface for easy navigation.
- Automatically updates vehicle data based on the provided station ID.
Before you begin, ensure that you have the following installed:
Clone the TransportLive repository to your local machine:
git clone https://github.com/yourusername/transportlive.git
cd transportlive
Navigate to the project directory and install the necessary dependencies using npm:
npm install
Start the application with the following command:
npm start
This will launch the application, and you can access it in your web browser. The app will be available at http://localhost:5173/ by default.
- Launch the app.
- Enter the station ID (from the STB database) in the input field.
- View the list of vehicles that are expected to arrive at the station, including the estimated arrival time for each vehicle.
- The data is updated in real time based on the station ID you provide.
Example Station ID: 12354
If you'd like to contribute to TransportLive, follow these steps:
- Fork the repository on GitHub.
- Clone your fork to your local machine.
- Create a new branch (git checkout -b feature-name).
- Make your changes.
- Commit your changes (git commit -am 'Add feature').
- Push your changes to your fork (git push origin feature-name).
- Create a Pull Request.
Please make sure your changes are well-documented, and ensure the app works as expected before submitting your PR.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thank you to the STB (Societate de Transport București) and to the cool IT team @ TPBI for finally providing the public transport API.
- Special thanks to the open-source community for providing useful libraries and tools that helped in building this project.