GeoCoordinate
data class GeoCoordinate(val latitude: Double, val longitude: Double) : Parcelable
Content copied to clipboard
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.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Types
Functions
Link copied to clipboard
Calculates the angle (bearing) between this GeoCoordinate and the GeoCoordinate given as an argument.
Link copied to clipboard
Link copied to clipboard
Calculates the geographic distance from this GeoCoordinate to the GeoCoordinate given as an argument.
Link copied to clipboard
Calculates the fraction between this GeoCoordinate and the GeoCoordinate comparing to the total distance.
Link copied to clipboard
fun intermediatePointTo(that: GeoCoordinate, distance: Distance): GeoCoordinate
Content copied to clipboard
Calculates a GeoCoordinate between this GeoCoordinate and the GeoCoordinate given as an argument.
Link copied to clipboard