Answer the question
In order to leave comments, you need to log in
Distance from point to location on android?
Hello! There are gps coordinates of one place. You need to know the coordinates of the location AND calculate the distances from the location to that point. How can I do that? Is there some kind of library?
Answer the question
In order to leave comments, you need to log in
Here you don’t need to look for libraries, but remember geometry, and specifically the topic about vectors. Remember / look for how to get a vector from two points and then find out the length of this vector, this will be the distance. The formulas are very simple.
The formulas are given here www.movable-type.co.uk/scripts/latlong.html
You just have to decide in which system to count Rhumb line or Great circle.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question