Skip to content

PROTOCOL

IPSBuildingCoordinatesConverter

@objc public protocol IPSBuildingCoordinatesConverter

This object allows to convert coordinates between Oriient coordinate system of the relevant building and a Client's coordinate system.

  • Since: 3.6.0

Properties

buildingId

var buildingId: String

Id of the relevant building

Methods

getFloorCoordinatesConverter(floorId:)

func getFloorCoordinatesConverter(floorId: String) -> IPSFloorCoordinatesConverter?

Provides the converter for the specific floor in the building. Will return nil if the floorId is not valid.

convertFromOriient(coordinate:floorId:)

func convertFromOriient(coordinate: IPSCoordinate, floorId: String) -> IPSCoordinate?

Converts a coordinate in Oriient's coordinate system to the corresponding coordinate in the Client's coordinate system. Will return nil if the floorId is not valid.

convertFromOriient(heading:floorId:)

func convertFromOriient(heading: IPSHeading, floorId: String) -> IPSHeading?

Converts a heading in Oriient's coordinate system to the corresponding heading in the Client's coordinate system. Will return nil if the floorId is not valid.

convertToOriient(coordinate:floorId:)

func convertToOriient(coordinate: IPSCoordinate, floorId: String) -> IPSCoordinate?

Converts a coordinate in the Client's coordinate system to the corresponding coordinate in Oriient's coordinate system. Will return nil if the floorId is not valid.

convertToOriient(coordinate:floorId:allowSnapping:)

func convertToOriient(coordinate: IPSCoordinate, floorId: String, allowSnapping: Bool) -> IPSCoordinate?

Converts a coordinate in the Client's coordinate system to the corresponding coordinate in Oriient's coordinate system.

  • Parameters:
  • coordinate: Client coordinate.
  • floorId: Floor id of the relevant floor.
  • allowSnapping: Defines if the SDK is allowed to snap the coordinate to layout if possible.

  • Returns: Corresponding Oriient coordinate if the floor id is valid. Nil otherwise.

  • Since: 8.3.0

Parameters

Name Description
coordinate Client coordinate.
floorId Floor id of the relevant floor.
allowSnapping Defines if the SDK is allowed to snap the coordinate to layout if possible.

convertToOriient(heading:floorId:)

func convertToOriient(heading: IPSHeading, floorId: String) -> IPSHeading?

Converts a heading in the Client's coordinate system to the corresponding heading in Oriient's coordinate system. Will return nil if the floorId is not valid.