GeoLocation

Represents a geographic location.

GeoLocation API

getAccuracyInMeters()

int getAccuracyInMeters()

Returns the accuracy in meters.

If this location does not have an accuracy, then -1 is returned.

getLatitude()

double getLatitude()

Returns the latitude in degrees.

getLongitude()

double getLongitude()

Returns the longitude in degrees.

hasAccuracy()

boolean hasAccuracy()

Returns true if this location has a horizontal accuracy, false otherwise.

Last updated