Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Sites ←SitesClient

RequestSiteAssetsByLocationAsync

Requests sites and assets near a GPS coordinate.

Declaration​

public async Task<SiteAssetsResult> RequestSiteAssetsByLocationAsync(double lat, double lng, double radiusMeters, AssetType assetType, int timeoutMs = DefaultTimeoutMs, CancellationToken cancellationToken = default)

Summary​

Requests sites and assets near a GPS coordinate.

Returns​

The site-assets result ordered by distance.

Parameters​

NameTypeSummary
latdouble
Latitude of the query coordinate, in degrees.
lngdouble
Longitude of the query coordinate, in degrees.
radiusMetersdouble
Search radius around the coordinate, in meters.
assetTypeAssetType
The type of assets to filter results by.
timeoutMsint
Maximum time to wait for the request to complete.
cancellationTokenCancellationToken
Token to cancel the operation.