{
"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": false,
"error": "invalid_coordinates",
"message": "Unexpected \"FN31PR\" in the coordinates."
}
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=latlon&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'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए समन्वय परिवर्तक यूटीएम एमजीआरएस API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें।
दशमलव डिग्री, डीएमएस, यूटीएम, एमजीआरएस, प्लस कोड और जियोहैश के बीच समन्वय परिवर्तित करें; इनपुट मान्य करें और दूरी और गंतव्य बिंदुओं को मापें
प्रत्येक एंडपॉइंट विभिन्न प्रकार का भू-स्थानिक डेटा लौटाता है जिसमें कई प्रारूपों में परिवर्तित समन्वय शामिल हैं जैसे दशमलव डिग्री, डीएमएस, यूटीएम, दूरी के माप, दिशा और मध्य बिंदु की गणनाएँ उदाहरण के लिए दूरी एंडपॉइंट मीटर, किलोमीटर और मील में दूरी प्रदान करता है साथ ही प्रारंभिक और अंतिम दिशाएँ भी प्रदान करता है
मुख्य फ़ील्ड्स में "इनपुट" (मूल निर्देशांक), "डिटेक्टेड" (फ़ॉर्मेट प्रकार), "पॉइंट" (अक्षांश और देशांतर), "डिस्टेंस" (विभिन्न इकाइयाँ), और "फ़ॉर्मेट्स" (परिवर्तित आउटपुट्स) शामिल हैं उदाहरण के लिए, दूरी अंत बिंदु में मीटर में दूरी और बियरिंग के लिए फ़ील्ड शामिल हैं
पैरामीटर प्रत्येक अंत बिंदु के अनुसार भिन्न होते हैं रूपांतरण अंत बिंदु के लिए आप किसी भी समन्वय प्रारूप के लिए "इनपुट" का उपयोग कर सकते हैं या विशिष्ट समन्वयों के लिए "lat" और "lon" का उपयोग कर सकते हैं दूरी अंत बिंदु दो समन्वय इनपुट और गणना विधियों के बीच चयन करने के लिए एक विधि पैरामीटर स्वीकार करता है
प्रतिक्रिया डेटा JSON प्रारूप में संरचित है जिसमें स्पष्टता के लिए नेस्टेड ऑब्जेक्ट होते हैं उदाहरण के लिए दूरी एन्डपॉइंट डेटा को इनपुट समन्वयों के लिए "से" और "तक" भागों में व्यवस्थित करता है इसके बाद "दूरी" "प्रारंभिकBearing" और "मध्यबिंदु" खंड होते हैं जिससे इसे पार्स करना आसान होता है
समर्थित प्रारूपों में दशमलव डिग्री (dd), डिग्री-निम्नतम-सेकंड (dms), UTM, MGRS, प्लस कोड, और जियोहैश शामिल हैं "GET /formats" एंडपॉइंट प्रत्येक प्रारूप पर विस्तृत उदाहरण और नोट्स प्रदान करता है ताकि उपयोगकर्ता डेटा को कैसे इनपुट और व्याख्या करना समझ सकें
विशिष्ट उपयोग के मामलों में मानचित्रण अनुप्रयोगों के लिए समन्वय को परिवर्तित करना लॉजिस्टिक्स के लिए दूरी計算 करना और यात्रा योजना के लिए मध्य बिंदुओं का निर्धारण करना शामिल है उपयोगकर्ता समन्वय को मान्य करने और विभिन्न प्रणालियों के साथ संगतता के लिए प्रारूपों के बीच परिवर्तित करने में भी सक्षम हैं
उपयोगकर्ता अपनी आवश्यकताओं के अनुकूल विशेष फ़ील्ड निकालकर लौटाए गए डेटा का उपयोग कर सकते हैं उदाहरण के लिए दूरी एंडपॉइंट से उपयोगकर्ता सीधे अपने पसंदीदा यूनिट में दूरी और नौवहन के लिए डिग्री प्राप्त कर सकते हैं संरचित प्रारूप अनुप्रयोगों में आसान एकीकरण की अनुमति देता है
डेटा सटीकता को WGS84 आधारित स्थापित ज्योदिशीय गणनाओं के माध्यम से बनाए रखा जाता है एपीआई दूरी की गणनाओं के लिए कार्नी और विंसेंटी जैसी विधियों का उपयोग करता है जिससे विश्वसनीय परिणाम सुनिश्चित होते हैं इसके अतिरिक्त इनपुट वैलिडेशन जांचों से निर्देशांक प्रारूपों में त्रुटियों को रोकने में मदद मिलती है