Hi all,
This week I changed my export from an excel file to a csv file. I also developed my app so I can give it a route id. It will then get all the trip ids and vehicle ids that are associated with route id given. It will then check all these trips for detours. If there is a detour it will return the CSV file with the date of the trip, route id, trip id and the vehicle id all part of the filename.
Below is an image of the files that are exported.
We have developed the algorithm so it takes in a date as a parameter as trips can have the same trip id and vehicle id and run on different days.
Below is a new trip we have started testing on. The blue points are the shape, the green points are the detour. We noticed that the GPS signals on the bus are being put out before the trip starts. This is circled in red in the image below. We will now change our vode to prevent this from happening.
Next week, I plan on:
Calculate Detour Duration: Implement a feature to determine the length of time the vehicle was on a detour.
Trip Start Validation: Ensure that GPS signals are only considered if they occur after the trip has officially started.
Thanks,
Andrew