Companion

object Companion

Functions

Link copied to clipboard
fun fromLatLon(latitude: Angle, longitude: Angle): WGSCoord
Link copied to clipboard
fun fromString(coordinates: String): WGSCoord

Parses a WGS-84 latitude/longitude pair from a textual representation. Supports decimal degrees, degrees-minutes (D M) and degrees-minutes-seconds (D M S) on each axis, with optional N/S and E/W hemisphere markers. The decoration characters ° ′ ″ ' " * , ; and whitespace act as separators.