Distance Calculation
Rami Mantoura
ramim at foremostsystems.com
Tue Nov 1 12:26:07 PDT 2016
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) )
>
>
> On 11/1/2016 1:28 PM, Rami Mantoura via Filepro-list wrote:
>
>> Hi All,
>>
>> Has anyone done the distance calulation in FP and is willing to share?
>>
>> I am looking to get the distance between 2 points where I have the
>> Longitude and latitude for each loacation.
>>
>> Any help would be appreciated.
>>
>> I am working on the calculation now.
>>
>> Thanks
>> Rami
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachm
>> ents/20161101/f8b7055e/attachment.html>
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20161101/6a705b28/attachment.html>
More information about the Filepro-list
mailing list