D
D
Dima2017-09-24 17:37:46
Java
Dima, 2017-09-24 17:37:46

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

3 answer(s)
A
Andrey Myvrenik, 2017-09-24
@gim0

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.

P
Peter, 2017-09-25
@petermzg

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.

E
Elysey, 2017-09-27
@Elysey

https://developer.android.com/reference/android/lo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question