GeoLocation Class

  • java.lang.Object
    • com.microsoft.azure.spatialanchors.GeoLocation

public class GeoLocation

Contains optional geographical location information within a sensor fingerprint. If any of the values are unknown, they should not be set or can be set to NaN.

Constructor Summary

Constructor Description
GeoLocation()

Method Summary

Modifier and Type Method and Description
void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

float getAltitude()

Gets the altitude of the device in meters.

float getHorizontalError()

Gets the horizontal error in meters of the latitude and longitude. This corresponds to the radius of a 68.3% confidence region on the East/North plane. Over many invocations, the true position should be within this number of horizontal meters of the reported position.

double getLatitude()

Gets the current latitude of the device in degrees.

double getLongitude()

Gets the current longitude of the device in degrees.

float getVerticalError()

Gets the vertical error of the altitude in meters. This corresponds to a one-sided 68.3% confidence interval along the Up axis. Over many invocations, the true altitude should be within this number of meters of the reported altitude.

void setAltitude(float value)

Sets the altitude of the device in meters.

void setHorizontalError(float value)

Sets the horizontal error in meters of the latitude and longitude. This corresponds to the radius of a 68.3% confidence region on the East/North plane. Over many invocations, the true position should be within this number of horizontal meters of the reported position.

void setLatitude(double value)

Sets the current latitude of the device in degrees.

void setLongitude(double value)

Sets the current longitude of the device in degrees.

void setVerticalError(float value)

Sets the vertical error of the altitude in meters. This corresponds to a one-sided 68.3% confidence interval along the Up axis. Over many invocations, the true altitude should be within this number of meters of the reported altitude.

Constructor Details

GeoLocation

public GeoLocation()

Method Details

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getAltitude

public float getAltitude()

Gets the altitude of the device in meters.

getHorizontalError

public float getHorizontalError()

Gets the horizontal error in meters of the latitude and longitude. This corresponds to the radius of a 68.3% confidence region on the East/North plane. Over many invocations, the true position should be within this number of horizontal meters of the reported position.

getLatitude

public double getLatitude()

Gets the current latitude of the device in degrees.

getLongitude

public double getLongitude()

Gets the current longitude of the device in degrees.

getVerticalError

public float getVerticalError()

Gets the vertical error of the altitude in meters. This corresponds to a one-sided 68.3% confidence interval along the Up axis. Over many invocations, the true altitude should be within this number of meters of the reported altitude.

setAltitude

public void setAltitude(float value)

Sets the altitude of the device in meters.

Parameters:

value - The new value.

setHorizontalError

public void setHorizontalError(float value)

Sets the horizontal error in meters of the latitude and longitude. This corresponds to the radius of a 68.3% confidence region on the East/North plane. Over many invocations, the true position should be within this number of horizontal meters of the reported position.

Parameters:

value - The new value.

setLatitude

public void setLatitude(double value)

Sets the current latitude of the device in degrees.

Parameters:

value - The new value.

setLongitude

public void setLongitude(double value)

Sets the current longitude of the device in degrees.

Parameters:

value - The new value.

setVerticalError

public void setVerticalError(float value)

Sets the vertical error of the altitude in meters. This corresponds to a one-sided 68.3% confidence interval along the Up axis. Over many invocations, the true altitude should be within this number of meters of the reported altitude.

Parameters:

value - The new value.

Applies to