Initializer

init(completion:)

Initializes and returns a search request based on the specified search completion data.

Declaration

init(completion: MKLocalSearchCompletion)

Parameters

completion

A search completion object obtained from an MKLocalSearchCompleter object. The search request uses the provided object to set the value of the naturalLanguageQuery property.

Return Value

An initialized search request.

Discussion

Use this method when initializing your object from MKLocalSearchCompleter objects. You do not need to use this method if you intend to provide the search string and region information yourself.

See Also