Simple Address Autocomplete
  • Home
  • Documentation
    • Google Maps API Key
    • Form Field IDs
    • Country
    • Browser Geolocation
    • Supported Forms
  • Knowledge Base
    • Forminator Forms
    • How to install and activate Simple Address Autocomplete plugin?
    • How to get coordinates?
    • How to get Google Maps API key?
    • Where to enter Google Maps API key?
    • How to find the field id?
    • Where to enter field id?
    • How to limit search to one or multiple countries?
    • How to enable browser geolocation?
    • How to add address autocomplete to Contact Form 7?
  • CHANGELOG
    • Changelog
  • Common Issues
    • Common Issues
Powered by GitBook
On this page

Was this helpful?

  1. Documentation

Country

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

PreviousForm Field IDsNextBrowser Geolocation

Last updated 4 years ago

Was this helpful?

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.

Related

How to limit search to one country?