[rules-users] VCRP - Distance calculation in getMilliDistance

Wolfgang Laun wolfgang.laun at gmail.com
Thu Feb 27 13:44:00 EST 2014


On 27/02/2014, Marcus Uerlings <muerlings at gmail.com> wrote:
>
> I´ve learned from a person that works with georeference that a good
> aproximation in calculating distances from latitude and longitude is to
> multiply the Euclidean result by "111.1".
> This "magic number" will give the approximate distance in kilometers and
> then the final soft score will show the minimum distance in "km" and not in
> "fuel" (although they are related).

This is based on 360° being equal to the length of the equator, and
for longitudes and latitudes down there it works well enough. But it's
already grossly inaccurate for east-to-west distances not farther
north (or south) than N +/-45°.

-W



More information about the rules-users mailing list