Hi guys, i have a big problem and i not found nothing here in the forum or in the Google to help me.
So, lets go.
Look the problem:
I have the initial distance (Example):
Latitude: -22.5457785
Longitude: -44.5447771
The final distance:
Latitude: -22.548887
Longitude: -44.55080
I did this script:
But im not getting the 100% correct distance. The diference is between 8-11%.
How can i fix this? Somebody knows a better way to calculate distance using latitude and longitude? Its very important to my project.
Or if somebody know a good plugin that i can work inside them. The Google maps is cool, but dont allow this.
PS: The GPS latitude and longitude are receiving info from Geolocation of construct.
Thanks all and sorry the bad english.