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
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
CoverageAreaResultcontaining coverage area information.- Throws:
-
CancellationErrorif the Task running this function was cancelled.-
TimeoutErrorif the function timed out before it could complete execution.-
VpsCoverageResult.Errorif there was an error specific to the VPS Coveragequery.