Class

MKLocalSearch

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

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

Initializing a Search Request

init(request: MKLocalSearchRequest)

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

Performing the Search

func start(completionHandler: MKLocalSearchCompletionHandler)

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

var isSearching: Bool

A Boolean indicating whether the search is currently in progress.

func cancel()

Cancels an in-progress search operation.

Constants

typealias MKLocalSearchCompletionHandler

A completion handler block for a search operation.

Relationships

Inherits From

Conforms To

See Also

Placemark Search

class MKLocalSearchRequest

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

class MKLocalSearchResponse

The results from a map-based search.

class MKLocalSearchCompleter

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

class MKLocalSearchCompletion

A fully formed string that completes a partial string.