Type Aliases

The following type aliases are available globally.

  • An azimuth measured in degrees clockwise from true north.

    This is a compatibility shim to keep the library’s public interface consistent between Apple and non-Apple platforms that lack Core Location. On Apple platforms, you can use CLLocationDirection anywhere you see this type.

    Declaration

    Swift

    public typealias LocationDirection = CLLocationDirection
  • A distance in meters.

    This is a compatibility shim to keep the library’s public interface consistent between Apple and non-Apple platforms that lack Core Location. On Apple platforms, you can use CLLocationDistance anywhere you see this type.

    Declaration

    Swift

    public typealias LocationDistance = CLLocationDistance
  • A latitude or longitude in degrees.

    This is a compatibility shim to keep the library’s public interface consistent between Apple and non-Apple platforms that lack Core Location. On Apple platforms, you can use CLLocationDegrees anywhere you see this type.

    Declaration

    Swift

    public typealias LocationDegrees = CLLocationDegrees
  • A geographic coordinate.

    This is a compatibility shim to keep the library’s public interface consistent between Apple and non-Apple platforms that lack Core Location. On Apple platforms, you can use CLLocationCoordinate2D anywhere you see this type.

    Declaration

    Swift

    public typealias LocationCoordinate2D = CLLocationCoordinate2D
  • An azimuth measured in degrees clockwise from true north.

  • A distance in meters.

  • A latitude or longitude in degrees.

  • A JSON array of JSONValue instances.

    Declaration

    Swift

    public typealias JSONArray = [JSONValue?]
  • A JSON object represented in memory by a dictionary with strings as keys and JSONValue instances as values.

    Declaration

    Swift

    public typealias JSONObject = [String : JSONValue?]
  • A latitude or longitude measured in radians, as opposed to LocationDegrees, which is measured in degrees of arc.

    Declaration

    Swift

    public typealias LocationRadians = Double
  • A difference in latitude or longitude measured in radians, as opposed to CLLocationDegrees, which is used by some libraries to represent a similar distance measured in degrees of arc.

    Declaration

    Swift

    public typealias RadianDistance = Double
  • A segment between two positions in a LineString geometry or Ring.

    Declaration

    Swift

    public typealias LineSegment = (LocationCoordinate2D, LocationCoordinate2D)