Companion

object Companion

Functions

Link copied to clipboard
fun fromDegrees(latitudeDegrees: Double, longitudeDegrees: Double): Location

Constructs a location with a specified latitude and longitude in degrees.

Link copied to clipboard
fun fromRadians(latitudeRadians: Double, longitudeRadians: Double): Location

Constructs a location with a specified latitude and longitude in radians.

Link copied to clipboard
fun fromString(coordinates: String): Location

Parses a geographic location from text, autodetecting the coordinate format. The dispatcher matches the input against each coord class's STRING_PATTERN in turn — MGRS (e.g. 32TLP5626635418), UTM (e.g. 36 N 329839E 5581722N), Gauss-Krüger (e.g. 53-01351, 66-65624) — and falls back to WGSCoord.fromString for any WGS-84 lat/lon notation (decimal degrees, D M, D M S with optional N/S/E/W markers and the usual decoration characters as separators).

Link copied to clipboard
fun fromTimeZone(timeZone: TimeZone): Location

Constructs an approximate location for a specified time zone. Used when selecting an initial camera position based on the device's current time zone.

Link copied to clipboard

Determines whether a list of locations crosses the antimeridian.