VMMSCoordinateBounds

@interface VMMSCoordinateBounds : NSObject

Model that represents the bounds of an area given the northeast and southwest corners.

Since

1.0
  • Designated initializer.

    Declaration

    Swift

    - (id)initWithCoordinate:(CLLocationCoordinate2D)coord1
                  coordinate:(CLLocationCoordinate2D)coord2;

    Parameters

    coord1

    The northeast corner of the bounds.

    coord2

    The southwest corner of the bounds.

    Return Value

    A VMMSCoordinateBounds instance.

  • Generates coordinate bounds using list of coordinates

    Since

    1.1

    Declaration

    Swift

    - (id)initWithCoordinates:(NSArray<NSValue *> *)coordinates;

    Parameters

    coordinates

    a list of coordinate NSValue objects

    Return Value

    A VMMSCoordinateBounds instance.

  • Test if location is within this rectangular boundary

    Since

    1.3

    Declaration

    Swift

    - (BOOL)containsLocation:(CLLocationCoordinate2D)location;

    Parameters

    location

    the location to check

    Return Value

    true if inside, false otherwise

  • The northeast corner of the bounds.

    Declaration

    Swift

    @property (readonly, nonatomic) CLLocationCoordinate2D northEast;
  • The southwest corner of the bounds.

    Declaration

    Swift

    @property (readonly, nonatomic) CLLocationCoordinate2D southWest;