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.

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.

MKLocalSearchResponse

The results from a map-based search.

searching

A Boolean indicating whether the search is currently in progress.

- cancel

Cancels an in-progress search operation.

Relationships

Inherits From

See Also

Placemark 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.

MKLocalSearchCompleter

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

MKLocalSearchCompletion

A fully formed string that completes a partial string.