Skip to content

STRUCT

IPSExternalLocationSignal

public struct IPSExternalLocationSignal

A location estimation produced by a source external to the Oriient positioning engine (e.g. a host app's own BLE/WiFi/beacons-fusion layer), supplied to the SDK via IPSPositioning.consumeExternalLocationSignal(_:). - Since: 9.10.0

Properties

sourceType

public let sourceType: String

External location signal source type. Open string (e.g., "BLE", "WIFI", "Beacons system fusion", or any custom type).

sourceId

public let sourceId: String?

An ID of the specific hotspot or beacon if the signal comes from an identified hardware source. Can be nil if the signal comes from a combined system layer or unidentified hardware source.

timestamp

public let timestamp: Date

A timestamp of when the estimation is relevant to, so we can know how relevant this estimation is (e.g., half a second ago, 10 seconds ago). Milliseconds preferred to determine freshness/staleness.

floorOrder

public let floorOrder: Int

The floor order (in Oriient system) at which the user is estimated to be in.

coordinates

public let coordinates: IPSCoordinate

The location estimation coordinates estimating the user location in the store. In Oriient Coordinate System

accuracy

public let accuracy: Double

In meters, the accuracy of the location estimation (defines the radius around the coordinates).

confidence

public let confidence: Double

The source's own confidence in this location estimation, from 0 (no confidence) to 1 (full confidence). Distinct from accuracy, which describes spatial precision rather than certainty.

Methods

init(sourceType:sourceId:timestamp:floorOrder:coordinates:accuracy:confidence:)

public init(
    sourceType: String,
    sourceId: String?,
    timestamp: Date,
    floorOrder: Int,
    coordinates: IPSCoordinate,
    accuracy: Double,
    confidence: Double
)