GPS location without maintenance

I am a new developer and ask a simple question that I was looking for, but have not yet found a clear answer ...

Simply put, I'm developing an application that should be able to use GPS. However, the trick is that I would like to use GPS to get the location of the phone, even if they do not have operator services.

With that said, I have 2 questions.

  • Is it possible to get the GPS location of a phone without the service of a telecom operator with a Wi-Fi connection?

  • Can I get the phone’s GPS location without operator services and without Wi-Fi?

Thanks in advance

+4
source share
2 answers
  • Yes, it is on many phones. The Wi-Fi network can be matched, which will accelerate the AGPS chip or allow to offload the position calculation to the supplier.

  • Depends on the GPS chip in question. In some cases, it simply does not work (network connection is required to work with the GPS processor). In most cases, GPS will take up to 10 minutes to fix from a cold start, since it needs to get the current satellite almanac to calculate the position.

+7
source

Although it is true that AGPS is dependent on any kind of data transfer, most Android phones have real GPS chips, which means that they communicate with satellites in space, regardless of any kind of data connection. This will provide a more accurate position, but will be slower to acquire. It’s best to listen to location updates both from network providers and from GPS, so that data-connected phones get a quick, blundered error that can be clarified by GPS and phones that don’t have a data connection just won't raise an event while GPS won't get a fix. If you want to be extremely reliable, do not block waiting for a fix so that the user can at least continue to use your application, instead of looking at the rotating icon.

+3
source

Source: https://habr.com/ru/post/1314872/


All Articles