Open Source iOS Library For Asynchronously Grabbing The Users Location Once

CLLocationManager allows you to easily grab a user location over time, but it can be a drain on the users battery especially if you don’t need to continuously track the users location.

Here’s an open source library from Intuit called INTULocationManager that makes it easy to easily grab the device’s current location once.

As the INTULocationManager readme states:

The CLLocationManager API works best when you need to track changes in the user’s location over time, such as for turn-by-turn GPS navigation apps. However, if you just need to ask “Where am I?” every now and then, CLLocationManager is fairly difficult to work with. Getting these one-off location updates is a common task for many apps, such as when you want to autofill an address from the current location, or determine which city the user is currently in.

INTULocationManager makes it easy to request the device’s current location, with a single API method that allows you to specify how accurate of a location you need, and how long you’re willing to wait to get it. INTULocationManager is power efficient and conserves the user’s battery by powering down location services (e.g. GPS) as soon as they are no longer needed.

There are a number of nice helpers to get the location with different levels of accuracy, and you can cancel location requests if desired.

You can find LocationManager on Github here.

A nice library for very simply grabbing the users current location.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source iOS Library For Asynchronously Grabbing The Users Location Once

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *