Coordinate Converter UTM MGRS API

API ID 14589

Convert coordinates between decimal degrees, DMS, UTM, MGRS, plus codes and geohash; validate input and measure distance and destination points.

API Documentation

Endpoints

Request
Send "input" in any supported format (auto-detected; see GET /formats) or "lat" and "lon". Returns the detected format, the point, the cell for grid inputs, and each requested output. Warnings explain any guess (a band-S vs southern-hemisphere UTM letter, a non-standard zone, a 0-360 longitude).
Endpoint ID: 37381
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37381/convert+a+coordinate+to+every+format
INPUT PARAMETERS

Convert a coordinate to every format — Endpoint Features

Object Description
input Optional The coordinate as text, up to 200 characters, URL-encoded.
lat Optional Latitude in decimal degrees (instead of input).
lon Optional Longitude in decimal degrees (instead of input).
to Optional Comma-separated outputs (default all): dd, dms, ddm, utm, mgrs, pluscode, geohash, maidenhead.
inputFormat Optional Skip auto-detection: latlon (dd/dms/ddm), utm, ups, mgrs, pluscode, geohash, maidenhead.
ref Optional Reference point for short plus codes (in the input, and to add a short code to the output), like "40.4,-79.9".
order Optional For letterless numbers: latlon (default) or lonlat. Hemisphere letters and lat/lon labels win.
utmZone Optional Force a UTM zone (1-60) instead of the standard one (80°S-84°N only).
mgrsPrecision Optional MGRS square size in metres: 1 (default), 10, 100, 1000, 10000, 100000.
pluscodeLength Optional Plus code digits: 2, 4, 6, 8, 10 (default) to 15.
geohashLength Optional Geohash characters, 1-12 (default 9, about 5 m).
maidenheadLength Optional Maidenhead characters: 2, 4, 6 (default) or 8.
ddDecimals Optional Decimal places for decimal degrees, 0-10 (default 6).
dmsDecimals Optional Decimal places on DMS seconds, 0-4 (default 1).
ddmDecimals Optional Decimal places on DDM minutes, 0-6 (default 4).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

input
lat
lon
to
inputFormat
ref
order
utmZone
mgrsPrecision
pluscodeLength
geohashLength
maidenheadLength
ddDecimals
dmsDecimals
ddmDecimals
API EXAMPLE RESPONSE
JSON
{
    "input": "40°26'46\"N 79°58'56\"W",
    "detected": "dms",
    "point": {
        "lat": 40.446111111,
        "lon": -79.982222222
    },
    "formats": {
        "dd": {
            "lat": 40.446111,
            "lon": -79.982222,
            "text": "40.446111, -79.982222"
        },
        "dms": {
            "text": "40°26'46.0\"N 79°58'56.0\"W",
            "lat": {
                "degrees": 40,
                "minutes": 26,
                "seconds": 46,
                "hemisphere": "N",
                "text": "40°26'46.0\"N"
            },
            "lon": {
                "degrees": 79,
                "minutes": 58,
                "seconds": 56,
                "hemisphere": "W",
                "text": "79°58'56.0\"W"
            }
        },
        "utm": {
            "system": "UTM",
            "zone": 17,
            "band": "T",
            "hemisphere": "N",
            "easting": 586309.934,
            "northing": 4477770.44,
            "text": "17T 586310 4477770",
            "convergence": 0.660306288,
            "scale": 0.999691696,
            "standardZone": true
        },
        "mgrs": {
            "text": "17TNE8630977770",
            "spaced": "17T NE 86309 77770",
            "gridZone": "17T",
            "square": "NE",
            "precision": 1
        }
    },
    "warnings": [],
    "datum": "WGS84",
    "disclaimer": "WGS84 only (NAD83 differs from WGS84 by about 1-2 m in the US; no datum shifts). Not for navigation or safety-critical use without independent verification."
}
Convert a coordinate to every format — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37381/convert+a+coordinate+to+every+format?input=40°26'46"N 79°58'56"W&to=dd,dms,utm,mgrs&inputFormat=latlon&order=latlon&mgrsPrecision=1&pluscodeLength=10&geohashLength=9&maidenheadLength=6&ddDecimals=6&dmsDecimals=1&ddmDecimals=4' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Always 200 for a readable request: valid true with the detected format, a normalized form, the point and other formats the same text also fits (e.g. "fn31pr" is Maidenhead and a geohash); or valid false with the error and a sentence saying what is wrong.
Endpoint ID: 37382
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37382/check+a+coordinate+and+say+what+format+it+is
INPUT PARAMETERS

Check a coordinate and say what format it is — Endpoint Features

Object Description
input Required The coordinate text.
inputFormat Optional Skip auto-detection: latlon (dd/dms/ddm), utm, ups, mgrs, pluscode, geohash, maidenhead.
ref Optional Reference point for short plus codes (in the input, and to add a short code to the output), like "40.4,-79.9".
order Optional For letterless numbers: latlon (default) or lonlat. Hemisphere letters and lat/lon labels win.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

input
inputFormat
ref
order
API EXAMPLE RESPONSE
JSON
{
    "input": "FN31pr",
    "valid": true,
    "detected": "maidenhead",
    "normalized": "FN31pr",
    "point": {
        "lat": 41.729166667,
        "lon": -72.708333333
    },
    "cell": {
        "southWest": {
            "lat": 41.708333333,
            "lon": -72.75
        },
        "northEast": {
            "lat": 41.75,
            "lon": -72.666666667
        }
    },
    "alsoValidAs": [],
    "warnings": []
}
Check a coordinate and say what format it is — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37382/check+a+coordinate+and+say+what+format+it+is?input=FN31pr&inputFormat=maidenhead&order=latlon' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Ellipsoidal (WGS84) distance in m, km, mi, nmi and ft, the initial and final bearing (degrees and 16-point compass) and the midpoint along the geodesic. method=karney (default; GeographicLib, works for every pair including nearly antipodal points) or vincenty (1975; returns 422 no_convergence where it fails). The example is Geoscience Australia's Flinders Peak to Buninyong test (54,972.271 m).
Endpoint ID: 37383
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37383/distance+bearings+and+midpoint+between+two+points
INPUT PARAMETERS

Distance bearings and midpoint between two points — Endpoint Features

Object Description
from Required Start, any format.
to Required End, any format.
method Optional karney (default) or vincenty.
inputFormat Optional Skip auto-detection: latlon (dd/dms/ddm), utm, ups, mgrs, pluscode, geohash, maidenhead.
ref Optional Reference point for short plus codes (in the input, and to add a short code to the output), like "40.4,-79.9".
order Optional For letterless numbers: latlon (default) or lonlat. Hemisphere letters and lat/lon labels win.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

from
to
method
inputFormat
ref
order
API EXAMPLE RESPONSE
JSON
{
    "from": {
        "input": "37°57'03.72030\"S 144°25'29.52440\"E",
        "detected": "dms",
        "point": {
            "lat": -37.951033417,
            "lon": 144.424867889
        }
    },
    "to": {
        "input": "37°39'10.15610\"S 143°55'35.38390\"E",
        "detected": "dms",
        "point": {
            "lat": -37.652821139,
            "lon": 143.926495528
        }
    },
    "distance": {
        "m": 54972.271,
        "km": 54.972271,
        "mi": 34.158186,
        "nmi": 29.682652,
        "ft": 180355.22
    },
    "initialBearing": {
        "degrees": 306.868159,
        "compass": "NW"
    },
    "finalBearing": {
        "degrees": 307.173631,
        "compass": "NW"
    },
    "midpoint": {
        "lat": -37.802192702,
        "lon": 144.175180764
    },
    "method": "karney",
    "warnings": [],
    "datum": "WGS84",
    "disclaimer": "WGS84 only (NAD83 differs from WGS84 by about 1-2 m in the US; no datum shifts). Not for navigation or safety-critical use without independent verification."
}
Distance bearings and midpoint between two points — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37383/distance+bearings+and+midpoint+between+two+points?from=37°57'03.72030"S 144°25'29.52440"E&to=37°39'10.15610"S 143°55'35.38390"E&method=karney&inputFormat=latlon&order=latlon' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Solves the direct geodesic problem on WGS84 (Karney): from a start point, an initial bearing and a distance, returns the end point (in the formats you ask for; default dd and dms) and the final bearing.
Endpoint ID: 37384
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37384/the+point+at+a+bearing+and+distance
INPUT PARAMETERS

The point at a bearing and distance — Endpoint Features

Object Description
from Required Start, any format.
bearing Required Initial bearing in degrees from true north (-360 to 360).
distance Required Distance (up to 40,075 km).
unit Optional m (default), km, mi, nmi or ft.
to Optional Output formats for the end point (default dd,dms).
inputFormat Optional Skip auto-detection: latlon (dd/dms/ddm), utm, ups, mgrs, pluscode, geohash, maidenhead.
ref Optional Reference point for short plus codes (in the input, and to add a short code to the output), like "40.4,-79.9".
order Optional For letterless numbers: latlon (default) or lonlat. Hemisphere letters and lat/lon labels win.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

from
bearing
distance
unit
to
inputFormat
ref
order
API EXAMPLE RESPONSE
JSON
{
    "from": {
        "input": "40.7128,-74.0060",
        "detected": "dd",
        "point": {
            "lat": 40.7128,
            "lon": -74.006
        }
    },
    "bearing": 45,
    "distance": {
        "value": 10,
        "unit": "km",
        "m": 10000
    },
    "point": {
        "lat": 40.776444847,
        "lon": -73.922238254
    },
    "formats": {
        "dd": {
            "lat": 40.776445,
            "lon": -73.922238,
            "text": "40.776445, -73.922238"
        },
        "dms": {
            "text": "40°46'35.2\"N 73°55'20.1\"W",
            "lat": {
                "degrees": 40,
                "minutes": 46,
                "seconds": 35.2,
                "hemisphere": "N",
                "text": "40°46'35.2\"N"
            },
            "lon": {
                "degrees": 73,
                "minutes": 55,
                "seconds": 20.1,
                "hemisphere": "W",
                "text": "73°55'20.1\"W"
            }
        }
    },
    "finalBearing": {
        "degrees": 45.05467,
        "compass": "NE"
    },
    "warnings": [],
    "datum": "WGS84",
    "disclaimer": "WGS84 only (NAD83 differs from WGS84 by about 1-2 m in the US; no datum shifts). Not for navigation or safety-critical use without independent verification."
}
The point at a bearing and distance — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37384/the+point+at+a+bearing+and+distance?from=40.7128,-74.0060&bearing=45&distance=10&unit=km&inputFormat=latlon&order=latlon' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Removes 2, 4 or 6 leading digits when the reference point is close enough for them to be recovered (Google's rules). Show a short code together with a town or city name.
Endpoint ID: 37385
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37385/shorten+a+plus+code+near+a+reference+point
INPUT PARAMETERS

Shorten a plus code near a reference point — Endpoint Features

Object Description
code Required A full plus code.
ref Required The reference point, like "51.37,-1.22".

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

code
ref
API EXAMPLE RESPONSE
JSON
{
    "code": "9C3W9QCJ+2VX",
    "ref": {
        "lat": 51.3708675,
        "lon": -1.217765625
    },
    "short": "CJ+2VX",
    "shortened": true,
    "point": {
        "lat": 51.3701125,
        "lon": -1.217765625
    },
    "note": "A short code only makes sense near the reference point (within about 25 km for 4 removed digits); show it with a town or city name."
}
Shorten a plus code near a reference point — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37385/shorten+a+plus+code+near+a+reference+point?code=9C3W9QCJ+2VX&ref=51.3708675,-1.217765625' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
The nearest full code to the reference point that ends with the short code (Google's recoverNearest). No geocoding: give coordinates, not a place name.
Endpoint ID: 37386
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37386/recover+the+full+plus+code+from+a+short+one
INPUT PARAMETERS

Recover the full plus code from a short one — Endpoint Features

Object Description
code Required A short (or full) plus code.
ref Required A point near the place.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

code
ref
API EXAMPLE RESPONSE
JSON
{
    "code": "CJ+2VX",
    "ref": {
        "lat": 51.3708675,
        "lon": -1.217765625
    },
    "fullCode": "9C3W9QCJ+2VX",
    "point": {
        "lat": 51.3701125,
        "lon": -1.217765625
    },
    "cell": {
        "southWest": {
            "lat": 51.3701,
            "lon": -1.21778125
        },
        "northEast": {
            "lat": 51.370125,
            "lon": -1.21775
        }
    }
}
Recover the full plus code from a short one — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37386/recover+the+full+plus+code+from+a+short+one?code=CJ+2VX&ref=51.3708675,-1.217765625' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Every input format with example spellings and notes, the output names, and the detection order.
Endpoint ID: 37387
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37387/supported+formats+with+examples
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{
    "datum": "WGS84",
    "inputs": [
        {
            "id": "dd",
            "name": "Decimal degrees",
            "examples": [
                "40.446111, -79.982222",
                "40.446111N 79.982222W",
                "lat=40.446111 lon=-79.982222",
                "40,446111; -79,982222"
            ],
            "notes": "Latitude first unless letters or labels say otherwise, or order=lonlat. Longitudes 180-360 are read as 0-360 style (with a warning)."
        },
        {
            "id": "dms",
            "name": "Degrees, minutes, seconds",
            "examples": [
                "40°26'46\"N 79°58'56\"W",
                "40 26 46 N, 79 58 56 W",
                "N 40 26 46 W 79 58 56",
                "40d26m46sN 79d58m56sW",
                "40:26:46N 79:58:56W"
            ],
            "notes": "Typographic primes, º, \"deg/min/sec\" and the words north/south/east/west are understood."
        },
        {
            "id": "ddm",
            "name": "Degrees and decimal minutes",
            "examples": [
                "N40°26.767' W79°58.933'",
                "40 26.767 -79 58.933"
            ],
            "notes": "Common on GPS units and in geocaching."
        },
        {
            "id": "utm",
            "name": "Universal Transverse Mercator",
            "examples": [
                "17T 586310 4477770",
                "17N 586310 4477770",
                "56 south 334786 6252080"
            ],
            "notes": "Zone 1-60 then the latitude band (C-X) or the hemisphere. \"S\" alone is read as band S (32°N-40°N) when the numbers fit it (a warning says so). Norway (32V) and Svalbard (31X-37X) zone exceptions; use utmZone to force a zone. 80°S to 84°N; UPS beyond."
        },
        {
            "id": "ups",
            "name": "Universal Polar Stereographic",
            "examples": [
                "UPS N 2001928 1989066"
            ],
            "notes": "North of 84°N and south of 80°S."
        },
        {
            "id": "mgrs",
            "name": "Military Grid Reference System (and USNG)",
            "examples": [
                "18SUJ2348706483",
                "18S UJ 23487 06483",
                "18SUJ2306",
                "ZAG0192789066"
            ],
            "notes": "Precision 1 m (10 digits) to 100 km (0 digits). Digits are truncated as NGA specifies; read back, a reference gives its square's center and corners. Polar zones A, B, Y, Z. USNG is MGRS written with spaces (\"spaced\")."
        },
        {
            "id": "pluscode",
            "name": "Open Location Code (plus code)",
            "examples": [
                "87G2C2W9+C4",
                "C2W9+C4 with ref=40.4,-79.9"
            ],
            "notes": "Full codes of 2-15 digits; short codes need ref=lat,lon (no geocoding of place names). Read back, a code gives its area's center."
        },
        {
            "id": "geohash",
            "name": "Geohash",
            "examples": [
                "dppn5fyxx",
                "u4pruydqqvj"
            ],
            "notes": "1-12 characters. A string that is only digits is not taken as a geohash unless inputFormat=geohash."
        },
        {
            "id": "maidenhead",
            "name": "Maidenhead locator (amateur radio)",
            "examples": [
                "FN31pr",
                "FN31pr21",
                "JO62"
            ],
            "notes": "2, 4, 6 or 8 characters. \"FN31pr\" is also a valid geohash; Maidenhead wins unless inputFormat=geohash."
        }
    ],
    "outputs": [
        "dd",
        "dms",
        "ddm",
        "utm",
        "mgrs",
        "pluscode",
        "geohash",
        "maidenhead"
    ],
    "notes": [
        "Auto-detection order: plus code, MGRS, UTM, UPS, Maidenhead, geohash, latitude/longitude text. Pass inputFormat to force one.",
        "what3words is not supported (proprietary).",
        "WGS84 only (NAD83 differs from WGS84 by about 1-2 m in the US; no datum shifts). Not for navigation or safety-critical use without independent verification."
    ]
}
Supported formats with examples — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37387/supported+formats+with+examples' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Points along the shortest path on the WGS84 ellipsoid (Karney's geodesic, GeographicLib) between "from" and "to" (any coordinate format /convert reads). Either "step" (a point every N units of "unit"; the last leg is shorter) or "points" (how many, evenly spaced; default 100); at most 2000 points. The end point is exactly "to". Coordinates are [lon, lat] (GeoJSON order). Each end's antipode (the point straight through the Earth) is included. waypoints=true adds a list with each point's distance from the start and its bearing. Nearly antipodal places have many shortest paths; you get one of them, with a warning.
Endpoint ID: 37422
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37422/great-circle+waypoints+as+geojson
INPUT PARAMETERS

Great-circle waypoints as GeoJSON — Endpoint Features

Object Description
from Required Start, any format: "40.6413,-73.7781", "18TWL8613...", a plus code...
to Required End, any format.
step Optional Distance between points, in "unit" (send step or points).
points Optional How many points, 2-2000 (default 100 when step is not sent).
waypoints Optional Add the list of points with distance and bearing (default false).
unit Optional Unit of the distances you send: m, km (default), mi, nmi, ft.
antimeridian Optional split (default, RFC 7946: cut at ±180° into a Multi- geometry, crossing points solved exactly) or unwrap (one geometry with longitudes past ±180°, for web maps that pan across the date line).
decimals Optional Decimal places on coordinates, 4-9 (default 7, about 1 cm).
format Optional json (default: the answer with a "geojson" Feature) or geojson (the Feature alone, Content-Type application/geo+json, ready for a map).
ref Optional Reference point for short plus codes in the input, like "40.4,-79.9".
order Optional For letterless numbers: latlon (default) or lonlat.
inputFormat Optional Skip auto-detection of the input format.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

from
to
step
points
waypoints
unit
antimeridian
decimals
format
ref
order
inputFormat
API EXAMPLE RESPONSE
JSON
{
    "from": {
        "input": "40.6413,-73.7781",
        "detected": "dd",
        "point": {
            "lat": 40.6413,
            "lon": -73.7781
        },
        "antipode": {
            "lat": -40.6413,
            "lon": 106.2219
        }
    },
    "to": {
        "input": "51.47,-0.4543",
        "detected": "dd",
        "point": {
            "lat": 51.47,
            "lon": -0.4543
        },
        "antipode": {
            "lat": -51.47,
            "lon": 179.5457
        }
    },
    "distance": {
        "m": 5554908.791,
        "km": 5554.908791,
        "mi": 3451.660298,
        "nmi": 2999.410794
    },
    "initialBearing": {
        "degrees": 51.381648,
        "compass": "NE"
    },
    "finalBearing": {
        "degrees": 107.982829,
        "compass": "ESE"
    },
    "step": {
        "value": 1000,
        "unit": "km",
        "m": 1000000
    },
    "count": 7,
    "crossesAntimeridian": false,
    "antimeridian": "split",
    "warnings": [],
    "geojson": {
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [
                    -73.7781,
                    40.6413
                ],
                [
                    -63.7097993,
                    45.8414162
                ],
                [
                    -51.8107308,
                    49.9824646
                ],
                [
                    -38.1043559,
                    52.7008553
                ],
                [
                    -23.2044986,
                    53.670872
                ],
                [
                    -8.2860408,
                    52.7541526
                ],
                [
                    -0.4543,
                    51.47
                ]
            ]
        },
        "properties": {
            "name": "Geodesic path (WGS84)",
            "distanceM": 5554908.791,
            "points": 7,
            "stepM": 1000000,
            "crossesAntimeridian": false
        }
    },
    "datum": "WGS84",
    "disclaimer": "WGS84 only (NAD83 differs from WGS84 by about 1-2 m in the US; no datum shifts). Not for navigation or safety-critical use without independent verification."
}
Great-circle waypoints as GeoJSON — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37422/great-circle+waypoints+as+geojson?from=40.6413,-73.7781&to=51.47,-0.4543&step=1000&waypoints=false&unit=km&antimeridian=split&decimals=7&format=json&order=latlon&inputFormat=latlon' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
"points" vertices (default 64, 8-720) at evenly spaced bearings, each exactly "radius" from "center" along the WGS84 ellipsoid (GeographicLib's direct solution), as a counterclockwise GeoJSON Polygon. Map libraries' flat circles are wrong away from the equator; this one is not. Across the date line it becomes a MultiPolygon cut at exactly computed points (or one polygon with longitudes past ±180° with antimeridian=unwrap); around a pole it is closed along the date line through the pole so maps fill the right side. Radius up to 10000 km. Also the polygon's geodesic area and perimeter.
Endpoint ID: 37423
GET https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37423/a+true+geodesic+circle+as+a+geojson+polygon
INPUT PARAMETERS

A true geodesic circle as a GeoJSON polygon — Endpoint Features

Object Description
center Required The centre, any format.
radius Required Radius in "unit" (more than 0, up to 10000 km).
points Optional Vertices, 8-720 (default 64).
unit Optional Unit of the distances you send: m, km (default), mi, nmi, ft.
antimeridian Optional split (default, RFC 7946: cut at ±180° into a Multi- geometry, crossing points solved exactly) or unwrap (one geometry with longitudes past ±180°, for web maps that pan across the date line).
decimals Optional Decimal places on coordinates, 4-9 (default 7, about 1 cm).
format Optional json (default: the answer with a "geojson" Feature) or geojson (the Feature alone, Content-Type application/geo+json, ready for a map).
ref Optional Reference point for short plus codes in the input, like "40.4,-79.9".
order Optional For letterless numbers: latlon (default) or lonlat.
inputFormat Optional Skip auto-detection of the input format.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

center
radius
points
unit
antimeridian
decimals
format
ref
order
inputFormat
API EXAMPLE RESPONSE
JSON
{
    "center": {
        "input": "51.5074,-0.1278",
        "detected": "dd",
        "point": {
            "lat": 51.5074,
            "lon": -0.1278
        }
    },
    "radius": {
        "value": 50,
        "unit": "km",
        "m": 50000
    },
    "points": 8,
    "containsPole": null,
    "crossesAntimeridian": false,
    "antimeridian": "split",
    "polygon": {
        "areaKm2": 7071.063425,
        "perimeterKm": 306.144073,
        "note": "The 8 vertices are exactly 50000 m from the centre; the area and perimeter are those of the 8-sided polygon with geodesic edges, a little inside the true circle."
    },
    "warnings": [],
    "geojson": {
        "type": "Feature",
        "geometry": {
            "type": "Polygon",
            "coordinates": [
                [
                    [
                        -0.6405922,
                        51.8240548
                    ],
                    [
                        -0.8479341,
                        51.5051895
                    ],
                    [
                        -0.6335074,
                        51.1885172
                    ],
                    [
                        -0.1278,
                        51.0579767
                    ],
                    [
                        0.3779074,
                        51.1885172
                    ],
                    [
                        0.5923341,
                        51.5051895
                    ],
                    [
                        0.3849922,
                        51.8240548
                    ],
                    [
                        -0.1278,
                        51.9567887
                    ],
                    [
                        -0.6405922,
                        51.8240548
                    ]
                ]
            ]
        },
        "properties": {
            "name": "Geodesic circle (WGS84)",
            "center": [
                -0.1278,
                51.5074
            ],
            "radiusM": 50000,
            "points": 8,
            "containsPole": null,
            "crossesAntimeridian": false
        }
    },
    "datum": "WGS84",
    "disclaimer": "WGS84 only (NAD83 differs from WGS84 by about 1-2 m in the US; no datum shifts). Not for navigation or safety-critical use without independent verification."
}
A true geodesic circle as a GeoJSON polygon — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14589/coordinate+converter+utm+mgrs+api/37423/a+true+geodesic+circle+as+a+geojson+polygon?center=51.5074,-0.1278&radius=50&points=8&unit=km&antimeridian=split&decimals=7&format=json&order=latlon&inputFormat=latlon' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Coordinate Converter UTM MGRS API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Convert coordinates between decimal degrees, DMS, UTM, MGRS, plus codes and geohash; validate input and measure distance and destination points.

Coordinate Converter UTM MGRS API FAQs

Each endpoint returns various types of geospatial data, including converted coordinates in multiple formats (e.g., decimal degrees, DMS, UTM), distance measurements, bearings, and midpoint calculations. For example, the distance endpoint provides distance in meters, kilometers, and miles, along with initial and final bearings.

Key fields include "input" (original coordinates), "detected" (format type), "point" (latitude and longitude), "distance" (various units), and "formats" (converted outputs). For instance, the distance endpoint includes fields for distance in meters and bearings.

Parameters vary by endpoint. For the conversion endpoint, you can use "input" for any coordinate format or "lat" and "lon" for specific coordinates. The distance endpoint accepts two coordinate inputs and a method parameter to choose between calculation methods.

Response data is structured in JSON format, with nested objects for clarity. For example, the distance endpoint organizes data into "from" and "to" sections for input coordinates, followed by "distance," "initialBearing," and "midpoint" sections, making it easy to parse.

Supported formats include decimal degrees (dd), degrees-minutes-seconds (dms), UTM, MGRS, plus codes, and geohash. The "GET /formats" endpoint provides detailed examples and notes on each format, helping users understand how to input and interpret data.

Typical use cases include converting coordinates for mapping applications, calculating distances for logistics, and determining midpoints for travel planning. Users can also validate coordinates and convert between formats for compatibility with different systems.

Users can utilize returned data by extracting specific fields relevant to their needs. For example, from the distance endpoint, users can directly access the distance in their preferred unit and bearings for navigation. The structured format allows for easy integration into applications.

Data accuracy is maintained through the use of established geodetic calculations based on the WGS84 datum. The API employs methods like Karney and Vincenty for distance calculations, ensuring reliable results. Additionally, input validation checks help prevent errors in coordinate formats.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs