Class

MKLocalSearch

A utility object for initiating map-based searches and processing the results.

Declaration

@interface MKLocalSearch : NSObject

Overview

Use an MKLocalSearch object to execute a single search request. You might use this class to search for addresses or points of interest on the map. Upon completion of the request, the object delivers the results to the completion handler that you provide.

Topics

Creating a Search Request

- initWithRequest:

Initializes and returns a search object configured with the specified parameters.

MKLocalSearchRequest

The parameters to use when searching for points of interest on the map.

MKLocalSearchResultType

Options that indicate types of search results.

Performing the Search

- startWithCompletionHandler:

Starts the search and delivers the results to the specified completion handler.

MKLocalSearchCompletionHandler

A completion handler block for a search operation.

searching

A Boolean indicating whether the search is currently in progress.

- cancel

Cancels an in-progress search operation.

Getting Search Results

MKLocalSearchResponse

The results from a map-based search.

Relationships

Inherits From

See Also

Placemark and Local Search

Searching for Nearby Points of Interest

Provide automatic search completions based on a user’s partial search query, and search the map for relevant locations nearby.

MKPlacemark

A user-friendly description of a location on the map.

MKLocalSearchResultType

Options that indicate types of search results.

MKLocalSearchCompleter

A utility object for generating a list of completion strings based on a partial search string that you provide.

MKLocalSearchCompleterResultType

Options that indicate types of search completions.

MKLocalSearchCompletion

A fully formed string that completes a partial string.