Distance Calculation

Walter Vaughan Jr wvaughan at steelerubber.com
Tue Nov 1 13:34:03 PDT 2016



-----Original Message-----
From: Filepro-list [mailto:filepro-list-bounces+wvaughan=steelerubber.com at lists.celestial.com] On Behalf Of Rami Mantoura via Filepro-list
Sent: Tuesday, November 01, 2016 3:26 PM
To: Howard <howie at aljex.com>
Cc: FilePro Mailing List <filepro-list at lists.celestial.com>
Subject: Re: Distance Calculation

Thanks,

Got it...

On Tue, Nov 1, 2016 at 3:06 PM, Howard <howie at aljex.com> wrote:

> Here is some code I use:
>
>          If:
>        Then: rada=dtor(LATTARGETF)    'to lat
>  467 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   - -   -
>          If:
>        Then: rado=dtor(LONGTARGETF)     'to long
>  468 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   - -   -
>          If:
>        Then: radb=dtor(dat(4))          'from lat
>  469 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   - -   -
>          If:
>        Then: radc=dtor(dat(5))          'from long
>  470 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   - -   -
>          If:
>        Then: df(8,.2)="3963" * acos( sin(rada) * sin(radb) + cos(rada) 
> *
> cos(radb) * cos(radc-rado) )
>

Those playing along will notice that the earlier referenced Wikipedia article had external links to examples that from my quick clicking were always for kilometers.

Howie's example uses miles for the math (from my vantage point).

--
Walter


More information about the Filepro-list mailing list