VPSARKitLocationSource

public final class VPSARKitLocationSource : RxObject, LocationSource, ARSessionProviding, ARSessionDelegate
extension VPSARKitLocationSource: VPSControllerDelegate
extension VPSARKitLocationSource: GeoPoseEstimatorDelegate
  • Declaration

    Swift

    public static var isAvailable: Bool { get }
  • Declaration

    Swift

    public let supportsHeading: Bool
  • Declaration

    Swift

    public let session: ARSession
  • Declaration

    Swift

    public private(set) var isStarted: Bool { get }
  • Declaration

    Swift

    public weak var delegate: LocationSourceDelegate? { get set }
  • The navigation itinerary used by the location source.

    Assigning an itinerary when a user is following an A→B itinerary enhances the overall navigation experience (e.g., itinerary projections, conveyor detection, etc.).

    For example, when conveying is detected, the system will prompt you to rescan the environment to restore tracking.

    Important

    Assign an itinerary only when using PositioningSDK alone, without the Map or AR SDK. These SDKs automatically assign an itinerary, so calling this method will override the one set by the Map or AR SDK.

    Declaration

    Swift

    public var itinerary: Itinerary? { get set }
  • Declaration

    Swift

    public weak var vpsDelegate: VPSARKitLocationSourceDelegate? { get set }
  • Declaration

    Swift

    public private(set) var scanStatus: ScanStatus { get set }
  • Declaration

    Swift

    public private(set) var state: State { get set }
  • Declaration

    Swift

    public init?(mapData: MapData)
  • Declaration

    Swift

    public init(serviceURL: String)
  • Declaration

    Swift

    public func start()
  • Declaration

    Swift

    public func stop()
  • Declaration

    Swift

    public func startScan()
  • Declaration

    Swift

    public func stopScan()
  • Declaration

    Swift

    public func checkVPSAvailability(at coordinate2D: CLLocationCoordinate2D) -> Single<Bool>
  • Checks if the provided coordinate is inside the VPS-covered area.

    Declaration

    Swift

    public func isVPSAvailable(at coordinate: Coordinate) -> Single<Bool>

    Parameters

    coordinate

    The coordinate to check.

    Return Value

    true if the provided coordinate is inside the VPS-covered area, false otherwise.

  • Calculates the distance to the nearest point of VPS coverage from the provided coordinate.

    Declaration

    Swift

    public func distanceToVPSCoverage(from coordinate: Coordinate) -> Single<CLLocationDistance>

    Parameters

    coordinate

    The coordinate from which to calculate the distance.

    Return Value

    The distance in meters if successfully calculated, or an error otherwise. The distance will be 0 if the provided coordinate is inside VPS-covered area.

ARSessionDelegate