MKLocalSearchRequest Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/MapKit.framework |
| Availability | Available in iOS 6.1 and later. |
| Companion guide | |
| Declared in | MKLocalSearchRequest.h |
Overview
An MKLocalSearchRequest object is a utility object that you use to specify map-based search parameters. After creating an instance of this object, you can assign a natural language string containing the address or point-of-interest to search for. You can also specify a specific map region to narrow the search results. You then use the configured object to initialize an MKLocalSearch object and perform your search.
Properties
naturalLanguageQuery
A string containing the desired search item.
Discussion
You specify this parameter as a string describing the map-based item you want to look for. The text is equivalent to what the user would type in a search field in the Maps app. For example, the text might contain all or part of an address or it might contain the name of a point of interest.
Availability
- Available in iOS 6.1 and later.
Declared In
MKLocalSearchRequest.hregion
A map region that provides a hint as to where to search.
Discussion
You can use this parameter to narrow the list of search results to those inside or close to the specified region. Specifying a region does not guarantee that the results will all be inside the region. It is merely a hint to the search engine.
Availability
- Available in iOS 6.1 and later.
Declared In
MKLocalSearchRequest.h© 2013 Apple Inc. All Rights Reserved. (Last updated: 2013-01-28)