If you are connected to WIFI, just use NETWORK PROVIDER for your location updates. they will be fast and accurate enough.
in general, if location updates are not required so often, then location updates are simultaneously requested from both GPS and NETWORK together. whenever you receive a location update of the desired accuracy, unregister from location updates.
But if location updates are often required, then a GPS call may be KILLER OF BATTERY, so be careful using GPS PROVIDER.
GPS updates are only available outdoors. GPS updates take time, take a battery, but are more accurate.
Network updates are faster, consume less battery, but relatively less accurate. But if we are talking about WIFI accuracy, it will be close to 50 or 100, which can satisfy many needs in real time.
It all depends on your requirements.
source share