Skip to content

CLASS

IPSStartingPositionModel

public final class IPSStartingPositionModel: IPSStartingPosition
  • This class implements the IPSStartingPosition interface and enables the creation of initial position.
  • Coordinates are provided in meters.
  • Since: 8.3.0

Properties

x

public let x: CGFloat

X coordinate in meters (increasing from left to right of building). - Since: 8.3.0

y

public let y: CGFloat

Y coordinate in meters (increasing from bottom to top of building). - Since: 8.3.0

z

public let z: CGFloat

Z coordinate. Currently unused. In future version of the SDK will indicate height. - Since: 8.3.0

buildingId

public let buildingId: String

ID of the corresponding building - Since: 8.3.0

floorOrder

public let floorOrder: Int

Order of the corresponding floor - Since: 8.3.0

accuracy

public let accuracy: CGFloat

The radius of uncertainty for the position in meters. - Since: 8.3.0

heading

public let heading: IPSHeading?

The estimated direction in which the user is facing. - Since: 8.3.0

Methods

init(buildingId:floorOrder:accuracy:x:y:z:)

public init(buildingId: String, floorOrder: Int,  accuracy: CGFloat, x: CGFloat, y: CGFloat, z: CGFloat = 0)