{"id":194,"date":"2014-05-05T17:49:14","date_gmt":"2014-05-05T17:49:14","guid":{"rendered":"http:\/\/www.autorouter.eu\/wiki\/?page_id=194"},"modified":"2014-05-05T18:03:35","modified_gmt":"2014-05-05T18:03:35","slug":"fpal-adr-query","status":"publish","type":"page","link":"https:\/\/www.autorouter.aero\/wiki\/flight-plan-addressing\/fpal-adr-query\/","title":{"rendered":"FPAL &#8211; ADR Query"},"content":{"rendered":"<p>To look up the Airspace Data Repository (ADR), enter a search term in the field below. All matching records will be returned.<\/p>\n<p>&nbsp;<\/p>\n\n\t\t<div style=\"margin-bottom: 20px;\"><input id=\"adrquerystring\" \/><input type=\"submit\" id=\"adrquerysubmit\" size=\"30\" value=\"Query\" \/><\/div>\n\t\t<div id=\"cf-turnstile-adr\"><\/div>\n\t\t<div><pre><span id=\"adrresult\"><\/pre><\/span><\/div>\n\t\t<script>\n\t\t(function() {\n\t\t\tvar adrWidgetId = null;\n\t\t\tfunction renderAdrTurnstile() {\n\t\t\t\tadrWidgetId = turnstile.render(\"#cf-turnstile-adr\", {\n\t\t\t\t\tsitekey: \"0x4AAAAAABgSOF4YVJHopseN\",\n\t\t\t\t\ttheme: \"light\"\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (typeof turnstile !== \"undefined\") {\n\t\t\t\trenderAdrTurnstile();\n\t\t\t} else if (!window._turnstileScriptLoading) {\n\t\t\t\twindow._turnstileScriptLoading = true;\n\t\t\t\twindow.onTurnstileLoad = function() {\n\t\t\t\t\twindow._turnstileScriptLoaded = true;\n\t\t\t\t\t(window._turnstileCallbacks || []).forEach(function(cb) { cb(); });\n\t\t\t\t\twindow._turnstileCallbacks = [];\n\t\t\t\t};\n\t\t\t\tvar s = document.createElement(\"script\");\n\t\t\t\ts.src = \"https:\/\/challenges.cloudflare.com\/turnstile\/v0\/api.js?onload=onTurnstileLoad&render=explicit\";\n\t\t\t\ts.async = true; s.defer = true;\n\t\t\t\tdocument.head.appendChild(s);\n\t\t\t\twindow._turnstileCallbacks = [renderAdrTurnstile];\n\t\t\t} else {\n\t\t\t\twindow._turnstileCallbacks = window._turnstileCallbacks || [];\n\t\t\t\twindow._turnstileCallbacks.push(renderAdrTurnstile);\n\t\t\t}\n\t\t\tjQuery(\"#adrquerysubmit\").click(function(e)\n\t\t\t{\n\t\t\t\te.preventDefault();\n\t\t\t\tvar resultSpan = jQuery(\"#adrresult\");\n\t\t\t\tvar queryString = jQuery(\"#adrquerystring\").val();\n\t\t\t\tresultSpan.html(\"Performing query for \\\"\" + queryString + \"\\\"...\");\n\t\t\t\tjQuery.post(\"\/api\/system\/onetimeauth\/adr\",\n\t\t\t\t{\n\t\t\t\t\t\"cf-turnstile-response\": turnstile.getResponse(adrWidgetId)\n\t\t\t\t}, function(data)\n\t\t\t\t{\n\t\t\t\t\tif (typeof data.error != \"undefined\")\n\t\t\t\t\t{\n\t\t\t\t\t\tresultSpan.html(\"<span style=\\\"color: red;\\\">Error: \" + data.error + \"<\/span>\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tjQuery.getJSON(\"\/api\/navdata\/adr\/id\/\" + encodeURIComponent(queryString) + \"?onetimeauth_adr=\" + data.onetimeauth_adr, function(data)\n\t\t\t\t\t{\n\t\t\t\t\t\tresultSpan.html(data.result);\n\t\t\t\t\t});\n\t\t\t\t\tturnstile.reset(adrWidgetId);\n\t\t\t\t});\n\t\t\t});\n\t\t})();\n\t\t<\/script>\n","protected":false},"excerpt":{"rendered":"<p>To look up the Airspace Data Repository (ADR), enter a search term in the field below. All matching records will be returned. &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":157,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-194","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":4,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/194\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/194\/revisions\/199"}],"up":[{"embeddable":true,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/157"}],"wp:attachment":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/media?parent=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}