MPIPosition

public struct MPIPosition : Codable, Equatable

MPIPosition represents the geolocation of an object at a specific point in time

  • An optional timestamp of the current position

    Declaration

    Swift

    public let timestamp: Double?
  • An optional MPICoordinates of the current position

    Note

    contains latitude, longitude, accuracy, floor level

    Declaration

    Swift

    public let coords: MPICoordinates?
  • Type of position

    Declaration

    Swift

    public let type: String
  • An Optional annotation of the position

    Declaration

    Swift

    public let annotation: String?
  • A description string for the MPIPosition by serializing the MPIPosition object itself

    Declaration

    Swift

    public var description: String { get }
  • Construct an MPIPosition object with the given properties.

    Declaration

    Swift

    public init(timestamp: Double? = 0.0, coords: MPICoordinates? = nil, type: String = "", annotation: String? = nil)