Closed magnuswikhog closed 2 years ago
But multiple other tools and formulas give a different result
I'd like to investigate this – can you provide one or two examples?
Two of the online tools I tried: https://www.omnicalculator.com/other/latitude-longitude-distance https://rl.se/avstand
I just noticed something strange - if I reduce the number of decimals on $ll2
to 5, I get 970.532
, which is near the 971
I've got from other tools and formulas.
Ok, thanks! I'll setup some test cases and keep you updated.
Thanks for the exteremely quick reply!
I should mention that the long floating point numbers in the first post come from var_export
of some actual coordinates, which is why they are so long.
Version 4.2.0 should fix this issue. Can you confirm this?
Now it looks okay, thanks for the quick fix!
Version of phpgeo: 4.1.0
Result
But multiple other tools and formulas give a different result, around
971 meters
, differing almost100 meters
!I've seen similar differences on other line segments and coordinates too, but the above one is a really big difference. Any ideas what's going on here? Which one is correct??