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:
fetchify.com/latest-news/doctor-jock-addresses-non-mainland-delivery-pains/
For full details on how to set up area exclusions go to our documentation page - fetchify.com/docs/javascript-library/address-auto-complete.html#:~:text=%23-,Exclusions,-These%20presets%20allow
An array of strings with default value []
. Add options to the array to exclude those regions from search results. The valid options are:
Value | Description |
| 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. |