UserLocation
Coordinates
Type: public
class
UserLocation
extends
A class that defines a user location
UserLocation(double lat, double lng)
Type: public
Constructor
Parameter Name | Type | Description |
---|---|---|
lat | double | the latitude |
lng | double | the longitude |
UserLocation(double lat, double lng, Double alt)
Type: public
Constructor
Parameter Name | Type | Description |
---|---|---|
lat | double | the latitude |
lng | double | the longitude |
alt | Double | the altitude |
UserLocation(double lat, double lng, Double alt, float accuracy)
Type: public
Constructor
Parameter Name | Type | Description |
---|---|---|
lat | double | the latitude |
lng | double | the longitude |
alt | Double | the altitude |
accuracy | float | the accuracy |
UserLocation(Coordinates coordinates)
Type: public
Constructor
Parameter Name | Type | Description |
---|---|---|
coordinates | Coordinates | a 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 Name | Type | Description |
---|---|---|
accuracy | float | the user location accuracy |