GeoPoint

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

The implementation of geographic coordinates.

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
constructor(latitude: Double, longitude: Double)

Functions

Link copied to clipboard
fun angleTo(other: GeoPoint): <Error class: unknown class>

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

Link copied to clipboard
fun distanceTo(other: GeoPoint): <Error class: unknown class>

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: <Error class: unknown class>): 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
fun intermediatePointTo(other: GeoPoint, distance: <Error class: unknown class>): GeoPoint

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

Link copied to clipboard
fun toPlainString(coordinateSeparator: String): String

Renders a GeoPoint as a string.

Properties

Link copied to clipboard
Link copied to clipboard