I have GPS tracks from 2 or more devices in multiple vehicles. At least one device reports the vehicle's position to a webui approximately every 5 seconds assuming that it has a cellular data connection. the second device logs its position to a file every second while it is functioning, however, it is not always functioning for the entire duration of the journey.
I would like to take these two tracks and merge them into a single track for analysis purposes. My naive first approach was to use the timestamps in the file and the webui to synchronize the tracks, however, there is no shared clock between the data stored from the two devices and I am not convinced that there is a constant delay in the webui log.
How can I merge the tracks, synchronize the timestamps, and interleave the points appropriately?