Overspeeding is one of the major causes of motor accidents. While educating drivers about the dangers of overspeeding can work, a more concrete method to prevent accidents is to upgrade stretches of roads where the average speed is higher based on accurate speed data. This Vehicle Speed Data Collection and Visualisation system acurately and continuously monitors the location and speed of a vehicle and visualises the data.
Program Structure
- Find the location of the vehicle of interest once every 10 seconds, for 200 seconds using an IP address to location api.
- Find the timestamp every time the location is calculated.
- Use two subsequent location vectors and the time difference to calculate the speed.
- Draw a simple graph between speed and time.
- Store the list of speeds for several vehicles in a text file.
- Use the speed data from multiple vehicles to plot a graph showing the average speed in the stretch of road.