Android location vs Google Play Services

2019-07-29 17:53发布

问题:

I've used both methods for my application and as expected I found Google Play Services to not only be more accurate but also a lot more stable and quicker. My question however is to why this is. I've read some differences between Android location and Google Play Services here and there, but I'd like to learn more about the underlying technologies used and why there is such a great difference in performance.

I hope someone can share an article with relevant information or share his or her own knowledge. Thanks in advance!

回答1:

Answer from Dhruvam Gupta on the question Singh provided:

The Google Location Services API, part of Google Play Services, provides a more powerful, high-level framework that automatically handles location providers, user movement, and location accuracy. It also handles location update scheduling based on power consumption parameters you provide. In most cases, you’ll get better battery performance, as well as more appropriate accuracy, by using the Location Services API.

More detailed differences between the two apis Google Play Service Location API and Android Framework Location API can be found here