sdk-common / com.tomtom.online.sdk.common.location / LatLngAcc

LatLngAcc

@DeprecatedSince("2020.08", "com.tomtom.online.sdk.common.location.LatLngBias") open class LatLngAcc : LatLng

Represents the coordinates (latitude, longitude) information with accuracy.

Constructors

<init>

LatLngAcc(position: LatLng!)

Default accuracy is 0.

LatLngAcc(position: LatLng!, radius: Float)
LatLngAcc(latitude: Double, longitude: Double, radius: Float)

Instantiates a new LatLngAcc object with the provided latitude and longitude accuracy in m.

Functions

getPosition

open fun getPosition(): LatLng

Get position without accuracy.

getRadius

open fun getRadius(): Float

Get accuracy in m.

Inherited Functions

equals

open fun equals(other: Any?): Boolean

getLatitude

open fun getLatitude(): Double

Get latitude.

getLatitudeAsString

open fun getLatitudeAsString(): String

Converts longitude to string.

getLongitude

open fun getLongitude(): Double

Get longitude.

getLongitudeAsString

open fun getLongitudeAsString(): String

Converts latitude to string.

hashCode

open fun hashCode(): Int

toArray

open static fun toArray(locations: MutableList<LatLng!>!): DoubleArray

Transforms a list of LatLng locations into an array of double values, ignoring altitude, radius and bearing. Latitude of location at index n is located at index n*2 in the resulting array. Longitude of location at index n is located at index n*2+1 in the resulting array.

toLocation

open fun toLocation(): Location

Converts to Location.

toString

open fun toString(): String