GeoPosition

data class GeoPosition(val latitude: Double, val longitude: Double, val altitude: Double = 0.0)

An immutable location on the globe, expressed in degrees of latitude/longitude and meters of altitude above the reference ellipsoid.

This is the base geographic type every other type in this library builds on (a Vertex's position, a marker's location, a polygon's boundary points, etc.).

Throws

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, altitude: Double = 0.0)

Properties

Link copied to clipboard

meters above the reference ellipsoid; defaults to sea level (0.0).

Link copied to clipboard

degrees north of the equator, must be within -90.0..90.0.

Link copied to clipboard

degrees east of the prime meridian, must be within -180.0..180.0.