Home

Awesome

Where

Detect user’s location without Location Services. There are several ways to approximate user’s location and this little framework provides unified interface for all of them.

Created for this app: Geography of the World

Interface

There are two main methods on class Where:

Both of these return instance of Where class, which contains this info:

Sources

To get latest instance for given source, call +[Where forSource:]

Options

You can customize behavior of the framework by calling +[Where detectWithOptions:] and passing one or more of these options:

To turn off continuous updates or usage of internet, use option None.

Debugging

You can simulate user’s location by using -WhereDebug launch argument with ISO or time zone value.

Additions

Framework uses categories on NSLocale and NSTimeZone with some generaly useful methods:

Try

Project includes demo app Where Am I which demonstrates usage of all features. To see the framework in real app, check out Geography of the World app. Thanks.


The MIT License (MIT)
Copyright © 2015 Martin Kiss