{"id":644,"date":"2023-06-29T14:11:32","date_gmt":"2023-06-29T14:11:32","guid":{"rendered":"https:\/\/placegar.dev.maidot.pt\/?page_id=644"},"modified":"2024-03-06T17:00:25","modified_gmt":"2024-03-06T17:00:25","slug":"geolocalizacao","status":"publish","type":"page","link":"https:\/\/placegar.dev.maidot.pt\/en\/geolocalizacao\/","title":{"rendered":"Geolocation"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"644\" class=\"elementor elementor-644\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3fe948f e-flex e-con-boxed e-con e-parent\" data-id=\"3fe948f\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-63738f1 e-con-full e-flex e-con e-child\" data-id=\"63738f1\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-4b5b4fa e-flex e-con-boxed e-con e-child\" data-id=\"4b5b4fa\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-34da26d e-con-full e-flex e-con e-child\" data-id=\"34da26d\" data-element_type=\"container\">\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4dbf8f63 e-flex e-con-boxed elementor-invisible e-con e-parent\" data-id=\"4dbf8f63\" data-element_type=\"container\" data-settings=\"{&quot;animation&quot;:&quot;fadeIn&quot;,&quot;background_background&quot;:&quot;classic&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4d59596f elementor-position-left elementor-widget__width-auto elementor-mobile-position-left elementor-view-default elementor-vertical-align-top elementor-widget elementor-widget-icon-box\" data-id=\"4d59596f\" data-element_type=\"widget\" data-widget_type=\"icon-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<link rel=\"stylesheet\" href=\"https:\/\/placegar.dev.maidot.pt\/wp-content\/plugins\/elementor\/assets\/css\/widget-icon-box.min.css\">\t\t<div class=\"elementor-icon-box-wrapper\">\n\t\t\t\t\t\t<div class=\"elementor-icon-box-icon\">\n\t\t\t\t<span  class=\"elementor-icon elementor-animation-\">\n\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" id=\"Camada_1\" x=\"0px\" y=\"0px\" viewbox=\"0 0 288.2 409.2\" style=\"enable-background:new 0 0 288.2 409.2;\" xml:space=\"preserve\"><g>\t<path d=\"M142.6,409.2c-3.6-1.5-6.1-4-8.2-7.3C97,341.6,59.7,281.3,22.3,221.1c-16.7-27-24.4-56.4-21.7-87.9  C4,91.1,22.6,56.6,55.8,30.5c29.1-22.9,62.5-32.9,99.2-30c41.6,3.3,75.8,21.7,101.9,54.3c23.1,28.9,33,62.2,30.9,99  c-1.4,24.2-9.3,46.5-21.8,67.3c-36,60-72,120-107.9,180.1c-2.1,3.5-4.6,6.5-8.5,8C147.3,409.2,144.9,409.2,142.6,409.2z M24.6,145  c0,21.9,6.6,43.5,19.6,64.4c33.1,53.3,66.2,106.7,99.3,160c2.4,3.8,2.4,3.8,4.7,0c32.7-54.5,65.6-108.9,97.9-163.7  c21.9-37.2,23.6-76,4.6-114.8c-26-53.1-86.3-78.5-142.5-60.7C58.7,45.9,24.8,91.2,24.6,145z\"><\/path>\t<path d=\"M216.3,144.1c0,40.2-32,72.1-72.3,72.1c-40,0-71.9-32-71.9-72.1c0-40.2,32.1-72.2,72.3-72.2  C184.3,72,216.3,104.1,216.3,144.1z M144.2,191.7c26,0,47.5-21.5,47.6-47.6c0.1-25.9-21.6-47.7-47.5-47.7  c-26.2,0-47.8,21.7-47.7,47.9C96.6,170.4,118.1,191.8,144.2,191.7z\"><\/path><\/g><\/svg>\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"elementor-icon-box-content\">\n\t\t\t\t<span class=\"elementor-icon-box-title\">\n\t\t\t\t\t<span  >\n\t\t\t\t\t\tFind a car park\t\t\t\t\t<\/span>\n\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2ffe2915 elementor-widget elementor-widget-maidot_search_location\" data-id=\"2ffe2915\" data-element_type=\"widget\" data-widget_type=\"maidot_search_location.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"maidot-search-location-container\"><input type=\"text\" class=\"maidot-search-location-input\" id=\"maidot-search-input\" placeholder=\"Location\"><button class=\"maidot-search-location-button\" onclick=\"maidotSearchRedirect()\">Search<\/button><\/div>        <script>\r\n        var selectedPlaceLatlng;\r\n\r\n        document.addEventListener(\"DOMContentLoaded\", function() {\r\n            var input = document.getElementById('maidot-search-input');\r\n            var autocomplete = new google.maps.places.Autocomplete(input);\r\n        \r\n            autocomplete.addListener('place_changed', function() {\r\n                var place = autocomplete.getPlace();\r\n                if (!place.geometry) {\r\n                    console.log(\"No details available for input: '\" + place.name + \"'\");\r\n                    return;\r\n                }\r\n                \/\/ Store the latitude and longitude\r\n                selectedPlaceLatlng = place.geometry.location;\r\n            });\r\n        });\r\n        \r\n        function maidotSearchRedirect() {\r\n            var redirectUrl = '\/geolocalizacao\/';\r\n            var urlParam = 'map_location';\r\n        \r\n            if (redirectUrl && urlParam && selectedPlaceLatlng) {\r\n                var latlngParam = selectedPlaceLatlng.lat() + ',' + selectedPlaceLatlng.lng();\r\n                window.location.href = redirectUrl + '?' + encodeURIComponent(urlParam) + '=' + encodeURIComponent(latlngParam);\r\n            }\r\n        }\r\n\r\n        <\/script>\r\n        \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5b9dc98 e-con-full e-flex e-con e-parent\" data-id=\"5b9dc98\" data-element_type=\"container\" data-core-v316-plus=\"true\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2a9aad6 elementor-widget elementor-widget-park_map_widget\" data-id=\"2a9aad6\" data-element_type=\"widget\" data-widget_type=\"park_map_widget.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div id=\"park-map\" style=\"height: 500px;\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Encontre um parque Procurar<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_joinchat":[],"footnotes":""},"class_list":["post-644","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/pages\/644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/comments?post=644"}],"version-history":[{"count":3,"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/pages\/644\/revisions"}],"predecessor-version":[{"id":1780,"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/pages\/644\/revisions\/1780"}],"wp:attachment":[{"href":"https:\/\/placegar.dev.maidot.pt\/en\/wp-json\/wp\/v2\/media?parent=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}