{"id":458,"date":"2021-04-29T14:19:57","date_gmt":"2021-04-29T14:19:57","guid":{"rendered":"https:\/\/utillz.com\/docs\/?page_id=458"},"modified":"2021-09-07T05:23:15","modified_gmt":"2021-09-07T05:23:15","slug":"geolocation","status":"publish","type":"page","link":"https:\/\/utillz.com\/docs\/explore\/geolocation\/","title":{"rendered":"Geolocation"},"content":{"rendered":"<p>You can use geolocation on your search forms and get results for all the markers inside the map bounds.<\/p>\n<p><img class=\"alignnone wp-image-686 size-full\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/canvas.png\" alt=\"\" width=\"1021\" height=\"750\" srcset=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/canvas.png 1021w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/canvas-300x220.png 300w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/canvas-768x564.png 768w\" sizes=\"(max-width: 1021px) 100vw, 1021px\" \/><\/p>\n<p>When you use the geolocation field, a new option &#8220;<strong>Search as I move the map<\/strong>&#8221; will appear on your map:<\/p>\n<p><img class=\"alignnone size-full wp-image-636\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/move.png\" alt=\"\" width=\"910\" height=\"114\" srcset=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/move.png 910w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/move-300x38.png 300w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/05\/move-768x96.png 768w\" sizes=\"(max-width: 910px) 100vw, 910px\" \/><\/p>\n<h3 id=\"how-to-add-geolocation-to-your-filters\">How to add geolocation to your filters?<\/h3>\n<p>Edit your search form and add a new field of type <code>geolocation<\/code><\/p>\n<p><img class=\"alignnone size-full wp-image-461\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/04\/Edit-Search-Form-\u2039-Booking-\u2014-WordPress-1.png\" alt=\"\" width=\"1858\" height=\"478\" \/><\/p>\n<p>The geolocation search field will appear in the filters. You can search by address and get Google places autocomplete suggestions, or you can get your correct location<\/p>\n<p><img class=\"alignnone size-full wp-image-465\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2021\/04\/Explore-\u2013-Booking-3.png\" alt=\"\" width=\"1785\" height=\"987\" \/><\/p>\n<h3 id=\"geolocation-autofill-restriction-by-country\">Geolocation autofill restriction by country<\/h3>\n<p>You can restrict the geolocation autofill by selected countries by going to <strong>Listing Types <i class=\"material-icon-arrow_right_alt __arrow\"><\/i> Settings <i class=\"material-icon-arrow_right_alt __arrow\"><\/i> Explore <i class=\"material-icon-arrow_right_alt __arrow\"><\/i> General <i class=\"material-icon-arrow_right_alt __arrow\"><\/i> Geolocation Restrictions<\/strong>.. Example: ES. You can also add multiple counties with comma, example: ES, FR, DE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use geolocation on your search forms and get results for all the markers inside the map bounds. When you use the geolocation field, &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":194,"menu_order":21,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages\/458"}],"collection":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":0,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages\/458\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages\/194"}],"wp:attachment":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/media?parent=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}