GuavaGeospatial

Added in 1.0.0-alpha08

public final class GuavaGeospatial


Summary

Public methods

static final @NonNull ListenableFuture<@NonNull VpsAvailabilityResult>
checkVpsAvailabilityAsync(
    @NonNull Geospatial receiver,
    @NonNull Session session,
    double latitude,
    double longitude
)

Gets the availability of the Visual Positioning System (VPS) at a specified horizontal position.

Public methods

checkVpsAvailabilityAsync

public static final @NonNull ListenableFuture<@NonNull VpsAvailabilityResultcheckVpsAvailabilityAsync(
    @NonNull Geospatial receiver,
    @NonNull Session session,
    double latitude,
    double longitude
)

Gets the availability of the Visual Positioning System (VPS) at a specified horizontal position. The availability of VPS in a given location helps to improve the quality of Geospatial localization and tracking accuracy.

This launches an asynchronous operation used to query the Google Cloud ARCore API. It may be called without calling Session.configure.

Your app must be properly set up to communicate with the Google Cloud ARCore API in order to obtain a result from this call, otherwise the result will be VpsAvailabilityNotAuthorized.

Parameters
@NonNull Session session

The current Session.

double latitude

The latitude in degrees.

double longitude

The longitude in degrees.

Returns
@NonNull ListenableFuture<@NonNull VpsAvailabilityResult>

the result of the VPS availability check.