Hi Sven,

2013/12/26 Sven Van Caekenberghe <[email protected]>:
> Hi Esteban,
> On 26 Dec 2013, at 02:23, Esteban A. Maringolo <[email protected]> wrote:
>> Answering myself...
>>
>> I found a solution and transcribed it: http://pastebin.com/ThKDXCKK
>
> This is the formula that we have been using for years in Pharo, Java[Script], 
> Common Lisp:
>
> distanceBetween: firstPosition and: secondPosition
>   "T3GeoTools distanceBetween: [email protected] and: [email protected]"

[snip]

>   http://www.movable-type.co.uk/scripts/latlong.html

According to this website your implementation uses the "Spherical law
of cosines" whilst mine uses the Haversine formula. Yours is simpler,
no doubt.


Best regards!


Esteban A. Maringolo

Reply via email to