init(completion:)
Creates and returns a search request based on the specified search completion data.
Declaration
init(completion: MKLocalSearchCompletion)Parameters
- completion:
A search completion object that MapKit obtains 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 don’t need to use this method if you intend to provide the search string and region information yourself.
See Also
Related Documentation
- Location and Maps Programming Guide