Package com.tomtom.sdk.common.location

Types

Link copied to clipboard
data class Address(    val streetNumber: String = "",     val streetName: String = "",     val municipalitySubdivision: String = "",     val municipality: String = "",     val countrySecondarySubdivision: String = "",     val countryTertiarySubdivision: String = "",     val countrySubdivision: String = "",     val postalCode: String = "",     val extendedPostalCode: String = "",     val countryCode: String = "",     val country: String = "",     val countryCodeIso3: String = "",     val freeformAddress: String = "",     val countrySubdivisionName: String = "",     val localName: String = "",     val streetNameAndNumber: String = "",     val postalName: String = "",     val countrySubdivisionCode: String = "",     val neighborhoodName: String = "")

Describes the detailed address.

Link copied to clipboard
data class GeoBias(val coordinate: GeoCoordinate, val radius: Double)

Implementation of the GeoCoordinate with a radius.

Link copied to clipboard
data class GeoBoundingBox(val topLeft: GeoCoordinate, val bottomRight: GeoCoordinate)

Represents a bounding box for the map. It's defined in the WGS84 format.

Link copied to clipboard
data class GeoBounds(val coordinates: List<GeoCoordinate>) : Parcelable

Represents geographical bounds determined by the given list of GeoCoordinate elements.

Link copied to clipboard
data class GeoCoordinate(val latitude: Double, val longitude: Double) : Parcelable

The implementation of geographic coordinates.

Link copied to clipboard
data class GeoLineSegment(val begin: GeoCoordinate, val end: GeoCoordinate)

Implementation of a line segment that represents a line between the two geographic coordinates.

Link copied to clipboard
data class GeoLocation(    val position: GeoCoordinate,     @FloatRange(from = 0.0) val accuracy: Double? = null,     @FloatRange(from = 0.0, to = 360.0) val course: Double? = null,     val speed: Double? = null,     val altitude: Double? = null,     val time: Long = System.currentTimeMillis(),     val provider: String = DEFAULT_PROVIDER,     val providerType: LocationProviderType = LocationProviderType.REALTIME,     val extras: Bundle? = null)

Geographical representation of a certain location. It provides additional attributes like speed or bearing what can be useful in navigation applications.

Link copied to clipboard
enum LocationProviderType : Enum<LocationProviderType>

The source that provides the location.

Link copied to clipboard
data class Place(    val coordinate: GeoCoordinate,     val name: String = "",     val address: Address? = null)

Structure holding information about a specific place.

Functions

Link copied to clipboard
fun normalizeLongitude(longitude: Double): Double

If longitude is more than 180 or less than -180 it brings it to normal value.