The Address Auto-Complete API, allows you to stop customers from entering addresses off the mainland in the UK and the USA at checkout. For more information about area exclusions, read our blog:
An array of strings with default value
. Add options to the array to exclude those regions from search results. The valid options are:
Excludes Northern Ireland from UK searches.
Excludes Isle of Man from UK searches.
Excludes Isle of Wight from UK searches.
Excludes Channel Islands from UK searches.
Excludes all areas except Northern Ireland from UK searches. Only addresses in Northern Ireland will be returned.
Excludes areas of the US that are not part of the 48 adjoining states: Alaska, American Samoa, Guam, Hawaii, Marshall Islands, Federated States of Micronesia, Northern Mariana Islands, Palau, Puerto Rico and Virgin Islands.
Excludes any US area that is not a state or federal district: American Samoa, Guam, Marshall Islands, Federated States of Micronesia, Northern Mariana Islands, Palau, Puerto Rico and Virgin Islands
This will exclude all Armed Forces Americas; Armed Forces Europe, Middle East, and Canada; and Armed Forces Pacific addresses.