MKLocalSearchResponse Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 6.1 and later.
Companion guide
Declared in
MKLocalSearchResponse.h

Overview

An MKLocalSearchResponse object contains the search results from a map-based search that was started using an MKLocalSearch object.

Tasks

MethodGroup

Properties

boundingRegion

The map region that encloses the returned search results. (read-only)

@property (nonatomic, readonly) MKCoordinateRegion boundingRegion;
Discussion

The returned region is the smallest bounding box that encloses all of the map items. If there is only one search result, the size of the region may be (0, 0).

Availability
  • Available in iOS 6.1 and later.
Declared In
MKLocalSearchResponse.h

mapItems

An array of map items representing the search results. (read-only)

@property (nonatomic, readonly) NSArray *mapItems;
Discussion

This property contains an array of MKMapItem objects, each of which represents a returned search result. You can use these objects to retrieve information about the search result, such as the name of the point of interest, the address, the geographic location, and so on.

Availability
  • Available in iOS 6.1 and later.
Declared In
MKLocalSearchResponse.h