eklem / geo-search-helper

Helper functions for geographical search, filtering and sorting
MIT License
2 stars 0 forks source link

Function - Calculate distance from two geographical points lon/lat #2

Closed eklem closed 2 years ago

eklem commented 3 years ago

https://en.wikipedia.org/wiki/Euclidean_distance_matrix

eklem commented 2 years ago

Try this formula. Will do it as shortest distance between two points along a sphere. https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula/27943#27943