Skip to main content

Restrict search to chosen countries

Narrow the countries you wish to support

Setting this to an empty array (default) will enable all countries

Setting this to a single country will disable country selection and hide the country selection toolbar

 
AddressFinder.setup({
apiKey: "ak_test",
detectCountry: false,
defaultCountry: "GBR",
restrictCountries: ["GBR"],
outputFields: {
line_1: "#first_line",
line_2: "#second_line",
line_3: "#third_line",
post_town: "#post_town",
postcode: "#postcode",
}
});

Live Demo

Loading...