Hey everyone! I'm working on a college project where I need to simulate the real-time movement of buses and predict their arrival times at different stops. I've got some data points to start with, including the bus departure times from the station, distances between bus stops, and the coordinates for each stop on a map. My goals are to create a visual simulation on a real map where I can display the buses moving, account for variable speeds and dwell times, factor in traffic variations, and predict the arrival times based on this data. I'm looking for advice on:
1. The best way to simulate bus movement on a map so it looks realistic.
2. Recommended tools or technologies for managing this project.
3. Tips on how to properly model traffic flow during the simulation.
Thanks for any help you can offer!
2 Answers
For handling bus location data, consider using a PostgreSQL database with the PostGIS extension. This setup lets you create a view that provides the latest bus positions. You could have the map refresh every few seconds to get updated locations from the database. Just a heads up, I'm not sure about the traffic flow modeling part!
I suggest starting with a simple simulation where the bus moves at a constant speed, then you can gradually tweak it for variable speeds as you progress. This approach makes things manageable at first!

Thanks for the tip! I’ll look into PostGIS.