{"id":170,"date":"2025-11-04T12:48:19","date_gmt":"2025-11-04T12:48:19","guid":{"rendered":"https:\/\/aasr-bulgaria.eu\/?p=170"},"modified":"2025-11-04T17:45:09","modified_gmt":"2025-11-04T17:45:09","slug":"wgs-utm35n-to-longtitute-latitude-calculator","status":"publish","type":"post","link":"https:\/\/aasr-bulgaria.eu\/index.php\/2025\/11\/04\/wgs-utm35n-to-longtitute-latitude-calculator\/","title":{"rendered":"WGS UTM35N to Longtitute, Latitude calculator"},"content":{"rendered":"\n<div class=\"utm-to-latlong-calculator\">\n  <h3>UTM 35N \u2192 Google Maps \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438<\/h3>\n  \n  <label>\u0417\u043e\u043d\u0430: <strong>35N<\/strong> (\u0444\u0438\u043a\u0441\u0438\u0440\u0430\u043d\u0430 \u0437\u0430 \u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f)<\/label><br><br>\n\n  <label for=\"easting\">Easting (X):<\/label>\n  <input type=\"number\" id=\"easting\" placeholder=\"\u043d\u0430\u043f\u0440. 255524\" step=\"0.001\">\n\n  <label for=\"northing\">Northing (Y):<\/label>\n  <input type=\"number\" id=\"northing\" placeholder=\"\u043d\u0430\u043f\u0440. 4689461\" step=\"0.001\">\n\n  <button onclick=\"convertUTM()\">\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0430\u0439<\/button>\n\n  <div id=\"result\" style=\"margin-top: 15px; font-weight: bold; color: #0073aa;\"><\/div>\n  <div id=\"map-link\" style=\"margin-top: 10px;\"><\/div>\n<\/div>\n\n<style>\n.utm-to-latlong-calculator {\n  max-width: 400px;\n  padding: 20px;\n  border: 1px solid #ccc;\n  border-radius: 10px;\n  font-family: Arial, sans-serif;\n  background: #f9f9f9;\n}\n.utm-to-latlong-calculator input {\n  width: 100%;\n  padding: 8px;\n  margin: 8px 0;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n}\n.utm-to-latlong-calculator button {\n  background: #0073aa;\n  color: white;\n  padding: 10px 15px;\n  border: none;\n  border-radius: 4px;\n  cursor: pointer;\n  font-weight: bold;\n}\n.utm-to-latlong-calculator button:hover {\n  background: #005a87;\n}\n<\/style>\n\n<script>\nfunction convertUTM() {\n  let easting = parseFloat(document.getElementById('easting').value);\n  let northing = parseFloat(document.getElementById('northing').value);\n\n  if (isNaN(easting) || isNaN(northing)) {\n    document.getElementById('result').innerHTML = '<span style=\"color:red;\">\u041c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u0438 \u0447\u0438\u0441\u043b\u0430!<\/span>';\n    document.getElementById('map-link').innerHTML = '';\n    return;\n  }\n\n  \/\/ \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u043e\u0431\u0440\u044a\u0449\u0430\u043d\u0435, \u0430\u043a\u043e \u0441\u0430 \u0440\u0430\u0437\u043c\u0435\u043d\u0435\u043d\u0438 (\u0437\u0430 \u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f Easting \u0435 6-\u0446\u0438\u0444\u0440\u0435\u043d\u043e, Northing 7-\u0446\u0438\u0444\u0440\u0435\u043d\u043e)\n  if (easting > 4000000 && northing < 1000000) {\n    const temp = easting;\n    easting = northing;\n    northing = temp;\n    document.getElementById('result').innerHTML = '<span style=\"color:black;\">\u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 \u0437\u0430 Google maps:<\/span><br>';\n  } else {\n    document.getElementById('result').innerHTML = '';\n  }\n\n  const X = easting;\n  const Y = northing;\n  const a = 6378137;\n  const f = 1 \/ 298.257223563;\n  const k0 = 0.9996;\n  const e2 = 2*f - f*f;\n  const e = Math.sqrt(e2);\n  const e1 = (1 - Math.sqrt(1 - e2)) \/ (1 + Math.sqrt(1 - e2));\n\n  const arc = Y \/ k0;\n  const mu = arc \/ (a * (1 - e2\/4 - 3*e2*e2\/64 - 5*e2*e2*e2\/256));\n  const ei = (1 - Math.sqrt(1 - e2)) \/ (1 + Math.sqrt(1 - e2));\n  const phi1 = mu + (3*ei\/2 - 27*ei*ei*ei\/32)*Math.sin(2*mu)\n               + (21*ei*ei\/16 - 55*ei*ei*ei*ei\/32)*Math.sin(4*mu)\n               + (151*ei*ei*ei\/96)*Math.sin(6*mu);\n\n  const N1 = a \/ Math.sqrt(1 - e2 * Math.sin(phi1)*Math.sin(phi1));\n  const T1 = Math.tan(phi1)*Math.tan(phi1);\n  const C1 = e1 * Math.cos(phi1)*Math.cos(phi1);\n  const R1 = a * (1 - e2) \/ Math.pow(1 - e2 * Math.sin(phi1)*Math.sin(phi1), 1.5);\n  const D = (X - 500000) \/ (N1 * k0);\n\n  let lat = phi1 - (N1*Math.tan(phi1)\/R1) *\n            (D*D\/2 - (5 + 3*T1 + 10*C1 - 4*C1*C1 - 9*e1*e1)*D*D*D*D\/24\n            + (61 + 90*T1 + 298*C1 + 45*T1*T1 - 252*e1*e1 - 3*C1*C1)*D*D*D*D*D*D\/720);\n\n  let lon = (D - (1 + 2*T1 + C1)*D*D*D\/6\n            + (5 - 2*C1 + 28*T1 - 3*C1*C1 + 8*e1*e1 + 24*T1*T1)*D*D*D*D*D\/120) \/ Math.cos(phi1);\n\n  lat = lat * 180 \/ Math.PI;\n  lon = lon * 180 \/ Math.PI + 27;  \/\/ \u041f\u043e\u043f\u0440\u0430\u0432\u0435\u043d\u043e \u0437\u0430 zone 35N (central meridian 27\u00b0)\n\n  const latStr = lat.toFixed(6);\n  const lonStr = lon.toFixed(6);\n\n  \/\/ \u0414\u043e\u0431\u0430\u0432\u044f\u043d\u0435 \u043a\u044a\u043c \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0430 (\u0432\u043c\u0435\u0441\u0442\u043e \u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438)\n  document.getElementById('result').innerHTML += `<strong>${latStr}, ${lonStr}<\/strong>`;\n\n  const mapsLink = `https:\/\/www.google.com\/maps?q=${latStr},${lonStr}`;\n  document.getElementById('map-link').innerHTML = `\n    <a href=\"${mapsLink}\" target=\"_blank\" style=\"color:#0073aa; text-decoration:underline; font-size:14px;\">\n      \u041e\u0442\u0432\u043e\u0440\u0438 \u0432 Google Maps\n    <\/a>\n  `;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u041a\u041a\u0421 2005 to Longtitute, Latitude calculator<\/h3>\n\n\n\n<div class=\"kks-to-latlong-calculator\">\n  <h3>\u041a\u041a\u0421 2005 \u2192 Google Maps \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438<\/h3>\n  \n  <label>\u0421\u0438\u0441\u0442\u0435\u043c\u0430: <strong>\u041a\u041a\u0421 2005 (BGS2005 \/ CCS2005)<\/strong><\/label><br><br>\n\n  <label for=\"x\">X (Easting):<\/label>\n  <input type=\"number\" id=\"x\" placeholder=\"\u043d\u0430\u043f\u0440. 379102\" step=\"0.001\">\n\n  <label for=\"y\">Y (Northing):<\/label>\n  <input type=\"number\" id=\"y\" placeholder=\"\u043d\u0430\u043f\u0440. 4688124\" step=\"0.001\">\n\n  <button onclick=\"convertKKS()\">\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0430\u0439<\/button>\n\n  <div id=\"result\" style=\"margin-top: 15px; font-weight: bold; color: #0073aa;\"><\/div>\n  <div id=\"map-link\" style=\"margin-top: 10px;\"><\/div>\n<\/div>\n\n<style>\n.kks-to-latlong-calculator {\n  max-width: 400px;\n  padding: 20px;\n  border: 1px solid #ccc;\n  border-radius: 10px;\n  font-family: Arial, sans-serif;\n  background: #f9f9f9;\n}\n.kks-to-latlong-calculator input {\n  width: 100%;\n  padding: 8px;\n  margin: 8px 0;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n}\n.kks-to-latlong-calculator button {\n  background: #0073aa;\n  color: white;\n  padding: 10px 15px;\n  border: none;\n  border-radius: 4px;\n  cursor: pointer;\n  font-weight: bold;\n}\n.kks-to-latlong-calculator button:hover {\n  background: #005a87;\n}\n<\/style>\n\n<script>\nfunction convertKKS() {\n  let x = parseFloat(document.getElementById('x').value);\n  let y = parseFloat(document.getElementById('y').value);\n\n  if (isNaN(x) || isNaN(y)) {\n    document.getElementById('result').innerHTML = '<span style=\"color:red;\">\u041c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u0438 \u0447\u0438\u0441\u043b\u0430!<\/span>';\n    document.getElementById('map-link').innerHTML = '';\n    return;\n  }\n\n  let swapped = false;\n  if (x > 4000000 && y < 1000000) {\n    const temp = x;\n    x = y;\n    y = temp;\n    swapped = true;\n  }\n\n  const resultDiv = document.getElementById('result');\n  resultDiv.innerHTML = swapped ? '<span style=\"color:black;\">\u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 \u0437\u0430 Google maps:<\/span><br>' : '';\n\n  const PI = Math.PI;\n  const a = 6378137.0;\n  const f = 1 \/ 298.257222101;\n  const e2 = 2 * f - f * f;\n  const e = Math.sqrt(e2);\n\n  const lon0_deg = 25.5;\n  const lat0_deg = 42.6678756833333;\n  const lat1_deg = 42;\n  const lat2_deg = 43.3333333333333;\n\n  const false_easting = 500000.0;\n  const false_northing = 4725824.3591;\n\n  const lon0 = lon0_deg * PI \/ 180;\n  const lat0 = lat0_deg * PI \/ 180;\n  const lat1 = lat1_deg * PI \/ 180;\n  const lat2 = lat2_deg * PI \/ 180;\n\n  const m1 = Math.cos(lat1) \/ Math.sqrt(1 - e2 * Math.sin(lat1)**2);\n  const m2 = Math.cos(lat2) \/ Math.sqrt(1 - e2 * Math.sin(lat2)**2);\n\n  const t0 = Math.tan(PI\/4 - lat0\/2) * Math.pow((1 - e * Math.sin(lat0)) \/ (1 + e * Math.sin(lat0)), e\/2);\n  const t1 = Math.tan(PI\/4 - lat1\/2) * Math.pow((1 - e * Math.sin(lat1)) \/ (1 + e * Math.sin(lat1)), e\/2);\n  const t2 = Math.tan(PI\/4 - lat2\/2) * Math.pow((1 - e * Math.sin(lat2)) \/ (1 + e * Math.sin(lat2)), e\/2);\n\n  const n = (Math.log(m1) - Math.log(m2)) \/ (Math.log(t1) - Math.log(t2));\n  const F = m1 \/ (n * Math.pow(t1, n));\n  const r0 = a * F * Math.pow(t0, n);\n\n  const E = x - false_easting;\n  const N = y - false_northing;\n\n  const r_prime = Math.sqrt(E**2 + (r0 - N)**2);\n  const t_prime = Math.pow(r_prime \/ (a * F), 1 \/ n);\n\n  let lat_rad = PI \/ 2 - 2 * Math.atan(t_prime);\n  for (let i = 0; i < 10; i++) {\n    const sin_lat = Math.sin(lat_rad);\n    const new_t = t_prime * Math.pow((1 + e * sin_lat) \/ (1 - e * sin_lat), e \/ 2);\n    lat_rad = PI \/ 2 - 2 * Math.atan(new_t);\n  }\n\n  const theta = Math.atan2(E, r0 - N);\n  const lon_rad = lon0 + theta \/ n;\n\n  const lat = lat_rad * 180 \/ PI;\n  const lon = lon_rad * 180 \/ PI;\n\n  const latStr = lat.toFixed(6);\n  const lonStr = lon.toFixed(6);\n\n  resultDiv.innerHTML += `<strong>${latStr}, ${lonStr}<\/strong>`;\n\n  const mapsLink = `https:\/\/www.google.com\/maps?q=${latStr},${lonStr}`;\n  document.getElementById('map-link').innerHTML = `\n    <a href=\"${mapsLink}\" target=\"_blank\" style=\"color:#0073aa; text-decoration:underline; font-size:14px;\">\n      \u041e\u0442\u0432\u043e\u0440\u0438 \u0432 Google Maps\n    <\/a>\n  `;\n}\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>UTM 35N \u2192 Google Maps \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 \u0417\u043e\u043d\u0430: 35N (\u0444\u0438\u043a\u0441\u0438\u0440\u0430\u043d\u0430 \u0437\u0430 \u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f) Easting (X): Northing (Y): \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0430\u0439 \u041a\u041a\u0421 2005 to Longtitute, Latitude calculator \u041a\u041a\u0421 2005 \u2192 Google Maps \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 \u0421\u0438\u0441\u0442\u0435\u043c\u0430: \u041a\u041a\u0421 2005 (BGS2005 \/ CCS2005) X (Easting): Y (Northing): \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0430\u0439<\/p>\n","protected":false},"author":1,"featured_media":181,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":12,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/posts\/170\/revisions\/186"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/media\/181"}],"wp:attachment":[{"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aasr-bulgaria.eu\/index.php\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}