SearchBoundaryRect

struct SearchBoundaryRect : Equatable
  • Initializer for creating a boundary rect based off a Mapkit view’s rectangle. It does a bit of math to determine the bounding box based off of map kit’s available data.

    Declaration

    Swift

    public init(mapRect: MKMapRect)

    Parameters

    mapRect

    An MKMapRect representing the rectangle we wish to bind to (usually whatever the map is displaying currently full screen on the device)

    Return Value

    A SearchBoundaryRect structure useful for limiting Pelias searches to a particular area