Find a way to trust the data uploaded by 1 user more than the data existing in the database
In order for us to plot the paths of the bus as accurately as possible we are going to need to find a way to trust user submitted data more than the already available data. It is not certain that we will store all of this in database we might keep all of this in memory to start with. I leave the idea free to explore. In any case it might be necessary to have a notion of probability if the timteable is the single source of truth the timetable position at a given time has a 100% chance of being true. As soon as a user uploads a position we need to assign a probability to his upload and update that of the existing positions relatively.
-
Check the implemented logic for adding an intermediary point -
Determine how to compute probabilites -
Determine how to store probabilities