{"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 class=\"g-recaptcha\" data-sitekey=\"6Lc0MQkTAAAAAIT6g6wMkAzmgCecOsFaDm2yXD5N\"><\/div>\n\t\t<div><pre><span id=\"adrresult\"><\/pre><\/span><\/div>\n\t\t<script src=\"https:\/\/www.google.com\/recaptcha\/api.js\" async defer><\/script>\n\t\t<script>\n\t\tjQuery(\"#adrquerysubmit\").click(function(e)\n\t\t{\n\t\t\te.preventDefault();\n\t\t\tvar resultSpan = jQuery(\"#adrresult\");\n\t\t\tvar queryString = jQuery(\"#adrquerystring\").val();\n\t\t\tresultSpan.html(\"Performing query for \\\"\" + queryString + \"\\\"...\");\n\t\t\tjQuery.post(\"\/api\/system\/onetimeauth\/adr\",\n\t\t\t{\n\t\t\t\t\"g-recaptcha-response\": jQuery(\"#g-recaptcha-response\").val()\n\t\t\t}, function(data)\n\t\t\t{\n\t\t\t\tif (typeof data.error != \"undefined\")\n\t\t\t\t{\n\t\t\t\t\tresultSpan.html(\"<span style=\\\"color: red;\\\">Error: \" + data.error + \"<\/span>\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tjQuery.getJSON(\"\/api\/navdata\/adr\/id\/\" + encodeURIComponent(queryString) + \"?onetimeauth_adr=\" + data.onetimeauth_adr, function(data)\n\t\t\t\t{\n\t\t\t\t\tresultSpan.html(data.result);\n\t\t\t\t});\n\t\t\t\tgrecaptcha.reset();\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}]}}