browser-image
    Preparing search index...

    Function parseCoordinate

    • Reads a coordinate typed in any of the supported notations:

      • latitude, longitude, in decimal degrees or degrees, minutes and seconds: 35.6812, 139.7671, N35.6812 E139.7671, 139.7671E 35.6812N, 35°40'52.3"N 139°46'1.6"E, 35 40 52.3 139 46 1.6, 35d40m52s N, 北緯35度40分52秒 東経139度46分1秒, packed 354052N 1394601E, lat 35.68 lon 139.76, POINT(139.76 35.68) (WKT, longitude first), full-width digits and Japanese punctuation. Without N/S/E/W or a label, latitude comes first, unless only the first value can be a longitude (139.76, 35.68);
      • MGRS: 54SUE8843349290, 54S UE 88433 49290 (any even number of digits);
      • UTM: 54N 386543 3950123 (zone, N or S, easting, northing; E/N or m after the numbers are allowed). Returns [lon, lat], or null when the text is none of them.

      Parameters

      • text: string

      Returns LonLat | null