Search code examples
androidfluttergeolocationgps

Auccuracy of Geolocator


I have a real quick question. As far as I know the Geolocator package uses the Android FusedLocationProviderClient to access the users location. Does this client use all the permitted opportunities to get the location (like gps,wlan,mobile networks...) or does this only use the gps data?

All together: How does the FusedLocationProviderClient get the data for the users location?

Thanks for the answer.


Solution

  • The fused location provider manages the underlying location technologies, such as GPS and Wi-Fi, and provides a simple API that you can use to specify the required quality of service. For example, you can request the most accurate data available, or the best accuracy possible with no additional power consumption

    We need not explicitly choose either GPS or Network location Provider, as the “Fused Location Provider” automatically chooses the underlying technology and gives the best location as per the need.

    REF : https://developers.google.com/location-context/fused-location-provider/

    So, regaring you question about the accuracy of the location it totally depends whethere the location was enabled and the fusedLocation stored it for furture use.