Inherits from NSObject
Declared in LUCachedLocationSearch.h
LUCachedLocationSearch.m

Overview

LUCachedLocationSearch is used to query a locally cached database of information on all LevelUp locations.

This database is a local SQLite file managed via Core Data. The SDK will contain an initial seed of the database, and then the LULocationCacheUpdater class can be used to keep the location cache up-to-date.

To use LUCachedLocationSearch, create an instance along with a CLLocation around which to order the locations, a maximum number of results, and an optional category ID upon which to filter.

Instance Methods

executeSearch:

Performs the search.

- (NSArray *)executeSearch:(NSError **)error

Parameters

error

If an error occurs during the search, error will be updated to point to an instance of NSError with error info.

Discussion

Performs the search.

Declared In

LUCachedLocationSearch.h

initWithCenter:limit:categoryID:

Creates an instance of LUCachedLocationSearch with the specified search criteria.

- (id)initWithCenter:(CLLocation *)center limit:(NSUInteger)limit categoryID:(NSNumber *)categoryID

Parameters

center

The center point of the search. Searches with progressively higher radii will be performed until at least limit results are found.

limit

The desired number of results.

categoryID

An optional category ID to filter on. May be nil.

Discussion

Creates an instance of LUCachedLocationSearch with the specified search criteria.

Declared In

LUCachedLocationSearch.h