iOS Developer Library

Developer

MapKit Framework Reference MKLocalSearchResponse Class Reference

Options
Deployment Target:

On This Page
Language:

MKLocalSearchResponse

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

Inheritance


Conforms To


Import Statement


import MapKit @import MapKit;

Availability


Available in iOS 6.1 and later.
  • mapItems mapItems Property

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

    Declaration

    Swift

    var mapItems: [AnyObject]! { get }

    Objective-C

    @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.

    Import Statement

    import MapKit

    Availability

    Available in iOS 6.1 and later.

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

    Declaration

    Swift

    var boundingRegion: MKCoordinateRegion { get }

    Objective-C

    @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).

    Import Statement

    import MapKit

    Availability

    Available in iOS 6.1 and later.