Country

This functionality limits the autocomplete search to one or multiple countries.

This option allows to limit the search to one country, multiple countries or Worldwide. If set a country it will only search through addresses within that specific country and will not show results outside the selected country/countries.

A list of countries including an option 'Worldwide' is provided to users on settings page. A condition runs depending on selection. The Worldwide option passes 'WW' which runs it without the componentRestrictions. Choosing a country passes the ISO 3166-1 Alpha-2 code and limits the search to that country.

'WW' is not a country at this stage, if it is allocated to any country then string can be passed.

Last updated