{
"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."
}
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'
{
"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": []
}
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'
{
"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."
}
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'
{
"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."
}
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'
{
"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."
}
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'
{
"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
}
}
}
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'
{
"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."
]
}
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'
{
"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."
}
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'
{
"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."
}
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'
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.
| 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.
Convert coordinates between decimal degrees, DMS, UTM, MGRS, plus codes and geohash; validate input and measure distance and destination points.
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.
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.
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.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund