Package-level declarations

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: GeoPoint, val radius: Double)

Implementation of the GeoPoint with a radius.

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

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

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

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

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

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

Link copied to clipboard
data class GeoLocation(val position: GeoPoint, @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 elapsedRealtimeNanos: Long = SystemClock.elapsedRealtimeNanos(), 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
data class GeoPoint(val latitude: Double, val longitude: Double) : Parcelable

The implementation of geographic coordinates.

Link copied to clipboard

The source that provides the location.

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

Structure holding information about a specific place.

Functions

Link copied to clipboard

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