Skip to main content
All CollectionsTechnical
Can I exclude certain areas?
Can I exclude certain areas?
Updated over a week ago

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

gbr_northern_ireland

Excludes Northern Ireland from UK searches.

gbr_isle_of_man

Excludes Isle of Man from UK searches.

gbr_isle_of_wight

Excludes Isle of Wight from UK searches.

gbr_channel_islands

Excludes Channel Islands from UK searches.

gbr_all_except_northern_ireland

Excludes all areas except Northern Ireland from UK searches. Only addresses in Northern Ireland will be returned.

usa_non_contiguous

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.

usa_insular_areas

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

usa_armed_forces

This will exclude all Armed Forces Americas; Armed Forces Europe, Middle East, and Canada; and Armed Forces Pacific addresses.

Did this answer your question?