Android Question Get coordinates from GPS

Sergey_New

Well-Known Member
Licensed User
Longtime User
Please tell me if it is possible to get coordinates of the current position using the GPS library. No map required, only coordinates.
 

RichardN

Well-Known Member
Licensed User
Longtime User
A GPS receiver uses probably the most power of any peripheral in a mobile device, hence the system will send it to sleep whenever the opportunity arises.

When a GPS receiver is turned on it presumes that it is in the same place as when it was last turned off..... Hence it figures out quickly which satellites will be in view and starts looking for them. If some time has past, or the device has been moved to a new location then the device quits the quick-fix routine and reverts to looking for satellites from first principles. A successful quick-start can take maybe 10 seconds, the first principles fix can take 2-3 minutes.

Hence the expression - There is no such thing as a quick-fix :) I'll get my coat......
 
Upvote 0

MadMaxCP

New Member
In my experience, GPS data takes a while to retrieve the position, but the FusedLocation library is faster. It provides a very good estimate almost instantly.
This may be sufficient for your application.
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
How curious, I have performed GPS position capture tests (FusedLocationProvider) with the Google Maps application, and both capture the position with the same time.

I think your problem may be in how to set times and priorities.

test:
 
Upvote 0
Top