I don't know if this will help but I'm going to post it anyway.
TomTom can measure how far you are away from a way point in yards (or meters? I don't remember atm), you could look through TomTom's code, find how Clad coded it, and then rewrite it to suite your needs.
__________________
Funtoo - Plan 9 - Windows 7
|