GeoPoint

data class GeoPoint(val latitude: Double, val longitude: Double) : Parcelable

The implementation of geographic coordinates.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

latitude

Latitude value. It should be between -90.0 and 90.0.

longitude

Longitude value. It should be between -180.0 and 180.0.

Constructors

Link copied to clipboard
fun GeoPoint(latitude: Double, longitude: Double)

Functions

Link copied to clipboard
fun angleTo(other: GeoPoint): Double

Calculates the angle (bearing) between this GeoPoint and the GeoPoint given as an argument.

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard

Calculates the geographic distance from this GeoPoint to the GeoPoint given as an argument.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun fractionTo(other: GeoPoint, distance: Distance): Double

Calculates the fraction between this GeoPoint and the GeoPoint comparing to the total distance.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Calculates a GeoPoint between this GeoPoint and the GeoPoint given as an argument.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
Link copied to clipboard