GeoCoordinatesUpdate

public struct GeoCoordinatesUpdate : Hashable

Represents geographical coordinates in 3D space. Unlike GeoCoordinates, its members can be undefined, allowing for APIs that update only the specified parts of geo coordinates.

  • Optional latitude in degrees.

    Declaration

    Swift

    public let latitude: Double?
  • Optional longitude in degrees.

    Declaration

    Swift

    public let longitude: Double?
  • Optional altitude in meters.

    Declaration

    Swift

    public let altitude: Double?
  • Constructs a GeoCoordinatesUpdate from the provided latitude and longitude values. Corrects values of latitude and longitude if they exceed the ranges.

    Declaration

    Swift

    public init(latitude: Double?, longitude: Double?)

    Parameters

    latitude

    Latitude in degrees. Positive value means Northern hemisphere. If the value is out of range of [-90.0, 90.0] it’s clamped to that range. NaN value is converted to nil.

    longitude

    Longitude in degrees. Positive value means Eastern hemisphere. If the value is out of range of [-180.0, 180.0] it’s replaced with a value within the range, representing effectively the same meridian. NaN value is converted to nil.

  • Constructs a GeoCoordinatesUpdate from the provided latitude, longitude and alt values. Corrects values of latitude and longitude if they exceed the ranges.

    Declaration

    Swift

    public init(latitude: Double?, longitude: Double?, altitude: Double?)

    Parameters

    latitude

    Latitude in degrees. Positive value means Northern hemisphere. If the value is out of range of [-90.0, 90.0] it’s clamped to that range. NaN value is converted to nil.

    longitude

    Longitude in degrees. Positive value means Eastern hemisphere. If the value is out of range of [-180.0, 180.0] it’s replaced with a value within the range, representing effectively the same meridian. NaN value is converted to nil.

    altitude

    Altitude in meters. NaN value is converted to nil.

  • Constructs a GeoCoordinatesUpdate from GeoCoordinates

    Declaration

    Swift

    public init(_ coordinates: GeoCoordinates)

    Parameters

    coordinates

    GeoCoordinates to construct GeoCoordinatesUpdate.