Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference to getting the location by using Location Manager and Fused Location Provider Api?

I need the real time difference to getting location using by Location Manager and Fused Api. I have checked with both, in Fused api(GPS) I am getting 7 digit after decimal point, but using by Location Manager(GPS) I will get nearly 15 digits after decimal point.

  1. Which one is better to get accurate user current location?

  2. What is the difference between Location Manager and Fused Api?

  3. Why we need to migrate from Location Manager to Fused Api?

  4. I used LocationRequest.PRIORITY_HIGH_ACCURACY, suppose I am in indoor, network is not available, how it returns the location?

  5. Is it return the lastknown location, even I didn't write the code in onConnected()?

like image 454
Maheswaran Murugan Avatar asked Jun 03 '15 12:06

Maheswaran Murugan


People also ask

What is fused location provider API?

The fused location provider is a location API in Google Play services that intelligently combines different signals to provide the location information that your app needs.

How accurate is fused location provider?

The accuracy values are typically more than 10 meters, while a third party GPS app (such as GPS test) typically reaches better accuracy if I wait long enough.


2 Answers

Related

Have found a previous answer for you, looks like FusedLocationProvider is going to be better

like image 73
RuAware Avatar answered Nov 15 '22 23:11

RuAware


I think that the difference between them is that one use the physical sensor directly (Location Manager), where as other take assistance from the network/internet .

To me the more accurate is Location Manager but it takes some time and location detection speed depends on some factors such as you are on open place or not , weather etc..

like image 44
ghost talker Avatar answered Nov 16 '22 00:11

ghost talker