Skip to main content

UserLocation

Coordinates

Type: public class UserLocation extends

A class that defines a user location

UserLocation(double lat, double lng)

Type: public

Constructor

Parameter NameTypeDescription
latdoublethe latitude
lngdoublethe longitude

UserLocation(double lat, double lng, Double alt)

Type: public

Constructor

Parameter NameTypeDescription
latdoublethe latitude
lngdoublethe longitude
altDoublethe altitude

UserLocation(double lat, double lng, Double alt, float accuracy)

Type: public

Constructor

Parameter NameTypeDescription
latdoublethe latitude
lngdoublethe longitude
altDoublethe altitude
accuracyfloatthe accuracy

UserLocation(Coordinates coordinates)

Type: public

Constructor

Parameter NameTypeDescription
coordinatesCoordinatesa latLngAlt coordinates

getAccuracy()

Type: public float

Get the user location accuracy

Returned Value: the user location accuracy

setAccuracy(float accuracy)

Type: public void

Set the user location accuracy

Parameter NameTypeDescription
accuracyfloatthe user location accuracy