kdbush icon indicating copy to clipboard operation
kdbush copied to clipboard

Implemented orthodromic distance algorithm

Open k0nsta opened this issue 4 years ago • 0 comments

Hi! This is my attempt to improve the logic of calculation distance between two points in a Within() method. If points are geographical with given longitudes and latitudes, then needs a bit more complex formula for calculation distance. I implemented a haversine formula for such cases and extended behaviour of Within() method.

k0nsta avatar Apr 08 '20 15:04 k0nsta