Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## Re: [Gpsbabel-misc] time with waypoints?

 Re: [Gpsbabel-misc] time with waypoints? From: Beverly Howard - 2006-01-27 20:54:18 ``` >> If the clever people could give us an algorithm, I'd certainly have a go at it. << Well, two disclaimers here, first, I'm not that clever, and second, I am a database programmer in FoxPro which has a number of helpful tools to make doing the following fairly easy. With that in mind and remembering that the following is just "thinking out loud; For the sake of simplicity, I would discard altitude, make all values positive, then find the nearest trackpoints using "fuzzy logic" to determine; a tp (a) where ((wp_lat - tp_lat) + (wp_long - tp_long)) is the lowest a tp (b) where ((tp_lat - wp_lat) + (tp_long - wp_long)) is the lowest I naively assume that (for at least a fairly straight track) that the waypoint would be between the two trackpoints and that it's "time" would be the proportional difference between the two trakpoint's times. I am sure that everyone and their brother is going to jump in and point out that lat/long distance values are inconsistant. While the above would not be accurate as a distance value, it should work as a "relative" value. There could be a trackpoint 2,500 feet above or such a convoluted track that it would scramble the above. Simply determining if the two resultant trackpoints are sequential could be a starting point at narrowing that down. (... this is gonna be interesting... and educational ;-) Beverly Howard ```