Possible Duplicate:
How to track distance via GPS on Android?
I have designed a GPS application and its telling my location well. But Now I want to include more feature. How I will make a radius there? to have a surrounding area of 5 or 6 km! How I can mention the distance between a place on that area and my place?
I feel like this question is starting to turn into a lot of questions. I decided to tackle this answer by directing it towards your question title “Distance for GPS Application”.
In my application, instead of using Google’s API’s I request the users distance from a list of GPS coordinates by doing the following:
In my
JJMathClass:Getting distance (Haversine Formula, in miles):
Then I round that number by:
I don’t work with Map overlays, but I am sure there are great tutorials or answers to come.