4π
β
In one of the calculations, you have specified latitude and longitude the wrong way around. You can test it here to check the results are repeatable if you switch the values around. Itβs literally just making sure you know which value is latitude and which is longitude and specifying it correctly to both APIs.
I donβt use the library but this seems to be poorly documented considering how easy this mistake is. You can see more in Does Y mean latitude and X mean longitude in every GIS software?
π€roganjosh
0π
Does it account for the decreased spherical distance at latitudes as you approach the poles? The correction can be closely approximated by multiplying the distance by cos(latitude) β in this case cos(52.16) = 0.613
π€MarkS
Source:stackexchange.com