Position, application holds a global public location object, and then automatically refreshes the location at a certain time, each time the refresh succeeds
Both assign the new location information to the global Location object, and then use the global location information for each location request that needs to be used
Make the request. The benefit of this scenario is that the request does not need to be positioned repeatedly, and each request uses the global Location object to save time.
The disadvantage of the scheme: power consumption, every time automatically refresh the location, the consumption of electricity is relatively large.
Scenario 2: Position on demand, before each request. The benefit of doing this is to save power and conserve resources, but when requested
will become relatively long.
Positioning project, how to choose the positioning scheme, how to balance the power consumption and real-time location accuracy?