CoordinateBounds

public extension CoordinateBounds
  • Returns the southern latitude of the bounds.

    Declaration

    Swift

    var south: CLLocationDegrees { get }
  • Returns the western longitude of the bounds.

    Declaration

    Swift

    var west: CLLocationDegrees { get }
  • Returns the northern latitude of the bounds.

    Declaration

    Swift

    var north: CLLocationDegrees { get }
  • Returns the eastern longitude of the bounds.

    Declaration

    Swift

    var east: CLLocationDegrees { get }
  • The centerpoint of this CoordinateBounds calculated by simple interpolation. This is a non-geodesic calculation which is not the geographic center.

    Declaration

    Swift

    var center: CLLocationCoordinate2D { get }
  • Returns whether the bounds are empty or not.

    Declaration

    Swift

    var isEmpty: Bool { get }
  • The absolute distance, in degrees, between the north and south boundaries of these bounds.

    One degree of latitude is approximately 111 kilometers (69 miles).

    Declaration

    Swift

    var latitudeSpan: CLLocationDegrees { get }
  • The absolute distance, in degrees, between the west and east boundaries of these bounds.

    The distance represented by a longitude span varies on current latitude. At the equator one degree of longitude represents a distance of approximately 111 kilometers (69 miles). While at the poles one degree of logitude span is 0 kilometers (0 miles).

    Declaration

    Swift

    var longitudeSpan: CLLocationDegrees { get }
  • The northwest coordinate of the bounds.

    Declaration

    Swift

    var northwest: CLLocationCoordinate2D { get }
  • The southeast coordinate of the bounds.

    Declaration

    Swift

    var southeast: CLLocationCoordinate2D { get }