Skip to content

worldwind-ui API / worldwind-kit / parseLatLon

Function: parseLatLon() ​

parseLatLon(text): LatLon | null

Defined in: kit/src/geo.ts:146

Parses user-typed coordinates such as 40.7, -74, 40.7N 74W or -33.9;151.2. Returns null when the text is not a coordinate pair or is out of range. *

Parameters ​

text ​

string

Returns ​

LatLon | null

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.