Skip to main content

CLASS

ArdkVpsCoverageSession

public final class ArdkVpsCoverageSession: ArdkSession.IDisposable

A session object for querying Visual Positioning System (VPS) coverage data related resources.

Methods​

requestCoverageAreas(locationLatLng:searchRadius:timeout:pollingInterval:)​

public func requestCoverageAreas(
locationLatLng latLng: LatLng,
searchRadius radius: Int,
timeout: TimeInterval = 60.0,
pollingInterval: TimeInterval = 0.5
) async throws -> CoverageAreaResult

Requests VPS coverage areas within a specified radius around the given location.

Initiates a network request and suspends until the result is available, the operation fails, or the timeout is reached.

  • Parameters:
    • locationLatLng: The center coordinates of the search area.
    • searchRadius: The radius in meters around the center to search for coverage areas.
    • timeout: Maximum time to wait for completion. Default is 60 seconds.
    • pollingInterval: Interval between completion checks. Default is 0.5 seconds.
  • Returns: A CoverageAreaResult containing coverage area information.
  • Throws:
    • CancellationError if the Task running this function was cancelled.
    • TimeoutError if the function timed out before it could complete execution.
    • VpsCoverageResult.Error if there was an error specific to the VPS Coverage query.

Parameters​

NameDescription
locationLatLngThe center coordinates of the search area.
searchRadiusThe radius in meters around the center to search for coverage areas.
timeoutMaximum time to wait for completion. Default is 60 seconds.
pollingIntervalInterval between completion checks. Default is 0.5 seconds.

requestLocalizationTargets(identifiers:timeout:pollingInterval:)​

public func requestLocalizationTargets(
identifiers targetIdentifiers: [String],
timeout: TimeInterval = 60.0,
pollingInterval: TimeInterval = 0.5
) async throws -> LocalizationTargetResult

Requests detailed information about specific localization targets.

Starts a network request for the given target identifiers and suspends until the request completes successfully, fails, or times out.

  • Parameters:
    • targetIdentifiers: A list of localization target identifiers to query.
    • timeout: Maximum time to wait for completion. Default is 60 seconds.
    • pollingInterval: Interval between completion checks. Default is 0.5 seconds.
  • Returns: A LocalizationTargetResult containing target details.
  • Throws:
    • CancellationError if the Task running this function was cancelled.
    • TimeoutError if the function timed out before it could complete execution.
    • VpsCoverageResult.Error if there was an error specific to the VPS Coverage query.

Parameters​

NameDescription
targetIdentifiersA list of localization target identifiers to query.
timeoutMaximum time to wait for completion. Default is 60 seconds.
pollingIntervalInterval between completion checks. Default is 0.5 seconds.

requestAreaTargets(locationLatLng:searchRadius:timeout:pollingInterval:)​

public func requestAreaTargets(
locationLatLng latLng: LatLng,
searchRadius radius: Int,
timeout: TimeInterval = 60.0,
pollingInterval: TimeInterval = 0.5
) async throws -> AreaTargetResult

Requests all available area targets within a specified radius.

Starts a network request to fetch nearby area targets and suspends until the operation completes, fails, or times out.

  • Parameters:
    • locationLatLng: The center coordinates of the search area.
    • searchRadius: The radius in meters to search for area targets.
    • timeout: Maximum duration to wait for a result. Default is 60 seconds.
    • pollingInterval: Interval between progress checks. Default is 0.5 seconds.
  • Returns: An AreaTargetResult containing area target data.
  • Throws:
    • CancellationError if the Task running this function was cancelled.
    • TimeoutError if the function timed out before it could complete execution.
    • VpsCoverageResult.Error if there was an error specific to the VPS Coverage query.

Parameters​

NameDescription
locationLatLngThe center coordinates of the search area.
searchRadiusThe radius in meters to search for area targets.
timeoutMaximum duration to wait for a result. Default is 60 seconds.
pollingIntervalInterval between progress checks. Default is 0.5 seconds.

requestHintImage(url:timeout:pollingInterval:)​

public func requestHintImage(
url: String,
timeout: TimeInterval = 60.0,
pollingInterval: TimeInterval = 0.5
) async throws -> HintImageResult

Downloads the hint image associated with a localization target.

Starts a network request for the specified hint image URL and suspends until the operation completes, fails, or times out.

  • Parameters:
    • url: The remote URL of the hint image to download.
    • timeout: Maximum duration to wait for completion. Default is 60 seconds.
    • pollingInterval: Interval between progress checks. Default is 0.5 seconds.
  • Returns: A HintImageResult containing the downloaded image data.
  • Throws:
    • CancellationError if the Task running this function was cancelled.
    • TimeoutError if the function timed out before it could complete execution.
    • VpsCoverageResult.Error if there was an error specific to the VPS Coverage query.

Parameters​

NameDescription
urlThe remote URL of the hint image to download.
timeoutMaximum duration to wait for completion. Default is 60 seconds.
pollingIntervalInterval between progress checks. Default is 0.5 seconds.