GeoLocation
fun GeoLocation( position: GeoCoordinate, @FloatRange(from = 0.0) accuracy: Double? = null, @FloatRange(from = 0.0, to = 360.0) course: Double? = null, speed: Double? = null, altitude: Double? = null, time: Long = System.currentTimeMillis(), provider: String = DEFAULT_PROVIDER, providerType: LocationProviderType = LocationProviderType.REALTIME, extras: Bundle? = null)
Content copied to clipboard
Parameters
position
Geographical position of the current location.
accuracy
GPS accuracy (in meters) of the current location.
course
Course made good in degrees, in range [0,360.0]
. Positive in East of true North. Represents the course made good angle of the device relative to true North. Or null if not available. Note: In the Android Location API, the corresponding field is called android.location.Location#getBearing.
speed
Current speed in meters per second. Or null if not available.
altitude
Altitude in meters. Or null if not available.
time
Time in millis.
provider
The name of the location provider.
providerType
The type of the location provider (eg. REALTIME or SOFT_DR).
extras
Extra data accompanying this location.