Skip to main content
API Reference SwiftyNsdk NsdkVpsCoverageSession

requestCoverageAreas

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

Declaration

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

Summary

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.


ON THIS PAGE