Latitude

value class Latitude(val degrees: Double)(source)

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

Link copied to clipboard
constructor(degrees: Double)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String