Skip to content

Latitude

@JvmInline
value class Latitude(val degrees: Double)

A latitude.

The latitude is measured in degrees, between -90° and 90°, both inclusive.

Positive values are north of the equator, negative values are south.

This type is a helper to avoid confusing Longitude and Latitude, it isn't itself a proper GeoJSON type. For this reason, it isn't serializable by itself (but types that contain it, such as Point, are).

Example

val bordeaux = Geo.Point(
    Geo.Longitude(-0.5811),
    Geo.Latitude(44.8416),
)

External resources

Constructors

Latitude

constructor(degrees: Double)

Properties

degrees

Functions

toString

open override fun toString(): String