Geographic Search Box Limit to a single Country

Continuing the discussion from Exclude exact addresses from geographic search:

Thanks to @kramwe, we can create a little div (HTML/CSS/JS) to enable city specific search powered by google, and with another simple line of java script we can limit the search to a specific country (for example France):

componentRestrictions: {country: ‘fr’}

Taking into account that the function “Limit Result Around” from the Search Box input doesn’t work, can anyone Show how to implement the Script to an existing Search Box?

Or at least is this possible?

It’ll be nice to have the design of the Search Box but with a REAL function of Limiting the Search to a Country, and to cities.

Maybe you @keith, know if this is possible. :slight_smile:

Thank you all


This topic was automatically closed after 70 days. New replies are no longer allowed.