Here is the issue:
I have 15 heavy haul trucks that travel the SAME road every day. They record the GPS position and vehicle speed every second - for each truck (stored in a flat file - not a table - but could be put into a table for processing).
I need to know when two trucks are at the same lat/lon at the same time (or 30 second sliding window).
The corporate policy is that trucks that meet (one going north - the other going south) must reduce their road speed to under 20 mph during this meeting.
Let's say unit number 74202 heads south. He will meet (at least) 4 trucks heading north during his trip segment (52 miles). When did each cross paths?
What kind of funcky formula would one need to cook up to solve this riddle?
Thanks (and happy new year to you all)!
I have 15 heavy haul trucks that travel the SAME road every day. They record the GPS position and vehicle speed every second - for each truck (stored in a flat file - not a table - but could be put into a table for processing).
I need to know when two trucks are at the same lat/lon at the same time (or 30 second sliding window).
The corporate policy is that trucks that meet (one going north - the other going south) must reduce their road speed to under 20 mph during this meeting.
Let's say unit number 74202 heads south. He will meet (at least) 4 trucks heading north during his trip segment (52 miles). When did each cross paths?
What kind of funcky formula would one need to cook up to solve this riddle?
Thanks (and happy new year to you all)!