GPKGLocationBoundingBox

Objective-C

@interface GPKGLocationBoundingBox : NSObject

Swift

class GPKGLocationBoundingBox : NSObject

Location Bounding Box, contains left, up, right, and down coordinates

  • Left coordinate

    Declaration

    Objective-C

    @property (nonatomic) CLLocationCoordinate2D leftCoordinate;

    Swift

    var leftCoordinate: CLLocationCoordinate2D { get set }
  • Up coordinate

    Declaration

    Objective-C

    @property (nonatomic) CLLocationCoordinate2D upCoordinate;

    Swift

    var upCoordinate: CLLocationCoordinate2D { get set }
  • Right coordinate

    Declaration

    Objective-C

    @property (nonatomic) CLLocationCoordinate2D rightCoordinate;

    Swift

    var rightCoordinate: CLLocationCoordinate2D { get set }
  • Down coordinate

    Declaration

    Objective-C

    @property (nonatomic) CLLocationCoordinate2D downCoordinate;

    Swift

    var downCoordinate: CLLocationCoordinate2D { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate;

    Swift

    init!(coordinate: CLLocationCoordinate2D)

    Parameters

    coordinate

    coordinate

    Return Value

    new location boundingbox

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithLeft:(CLLocationCoordinate2D)left
                           andUp:(CLLocationCoordinate2D)up
                        andRight:(CLLocationCoordinate2D)right
                         andDown:(CLLocationCoordinate2D)down;

    Swift

    init!(left: CLLocationCoordinate2D, andUp up: CLLocationCoordinate2D, andRight right: CLLocationCoordinate2D, andDown down: CLLocationCoordinate2D)

    Parameters

    left

    left coordinate

    up

    up coordinate

    right

    right coordinate

    down

    down coordinate

    Return Value

    new location boundingbox

  • Get the west coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)westCoordinate;

    Swift

    func westCoordinate() -> CLLocationCoordinate2D

    Return Value

    west coordinate

  • Get the northwest coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)northwestCoordinate;

    Swift

    func northwestCoordinate() -> CLLocationCoordinate2D

    Return Value

    northwest coordinate

  • Get the north coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)northCoordinate;

    Swift

    func northCoordinate() -> CLLocationCoordinate2D

    Return Value

    north coordinate

  • Get the northeast coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)northeastCoordinate;

    Swift

    func northeastCoordinate() -> CLLocationCoordinate2D

    Return Value

    northeast coordinate

  • Get the east coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)eastCoordinate;

    Swift

    func eastCoordinate() -> CLLocationCoordinate2D

    Return Value

    east coordinate

  • Get the southeast coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)southeastCoordinate;

    Swift

    func southeastCoordinate() -> CLLocationCoordinate2D

    Return Value

    southeast coordinate

  • Get the south coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)southCoordinate;

    Swift

    func southCoordinate() -> CLLocationCoordinate2D

    Return Value

    south coordinate

  • Get the southwest coordinate

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)southwestCoordinate;

    Swift

    func southwestCoordinate() -> CLLocationCoordinate2D

    Return Value

    southwest coordinate