I need to make some calculations using the user current lat/long and some values stored in the db.
The problem is that Location.getLatitude() returns a value like 4119778.0 and my values in the db are saved like 41.16753.
I tried to look to the Location.convert functions but i cant find anything.
How can I make the values the same format?
If your type in database is set to double it should not be a problem.
And Location.getLatitude() returns normaly a value between – 50 to + 50.
Can you give us some code? I never needed to format when i used getLatitude() and store it into database.