# Restricting Your Delivery Zone

**BARNET E-COMMERCE: RESTRICTING YOUR DELIVERY ZONE**

You can restrict online delivery orders to a specific geographic area by setting up a delivery zone using Google Maps. This ensures customers can only place delivery orders within your approved service area.

**Overview**

To restrict your delivery area, you will need to:

1. Create a **delivery zone polygon** in your Google account
2. Generate a **Google Maps API key** (small Google usage fees may apply)
3. Add the API key and delivery zone to **Barnet Network**

Once configured, delivery orders will only be accepted from addresses inside your defined zone.

**Step 1: Create a Google Delivery Zone (Polygon)**

Delivery zones are created using Google Maps tools and saved as a **polygon** (a drawn boundary on a map).

* Log in to your **Google Business / Google Maps** account
* Define your delivery area by drawing a polygon around the zone you serve
* Google may charge a **minimal usage fee** depending on map activity
* Once created, you will use this zone in Barnet Network

Barnet does not create or manage delivery polygons on your behalf. This must be completed in your Google account.

**Step 2: Set Up Your Google Maps API Key**

A Google Maps API key is required for address validation and delivery-zone checking.

**Required Google APIs**

When creating your API key, ensure **all** of the following APIs are enabled:

* **Distance Matrix API**
* **Geocoding API**
* **Maps JavaScript API**

Google’s official guide to creating an API key: <https://developers.google.com/maps/documentation/javascript/get-api-key>

**Step 3: Enter the API Key in Barnet Network**

Once your API key is created:

1. Log in to **Barnet Network**
2. Navigate to **E-Commerce / Delivery Settings**
3. Paste your **Google Maps API key** into the API field
4. Save your changes

This allows Barnet E-Commerce to validate customer delivery addresses.

![](https://content.gitbook.com/content/gxlSIIMuIqFC3w3MtCp7/blobs/f6kXTcV9p4HeDioCB5LT/Unknown%20image)

**Step 4: Set Up the Delivery Zone in Barnet Network**

After your API key is added:

1. Go to **Delivery Zone Settings**
2. Select **Add Polygon**
3. Apply the delivery zone created in Google
4. Save and confirm the configuration

![](https://content.gitbook.com/content/gxlSIIMuIqFC3w3MtCp7/blobs/ItMklbOgSdrF1x12nAvz/Unknown%20image)

![](https://content.gitbook.com/content/gxlSIIMuIqFC3w3MtCp7/blobs/ggihjgSpwU4R4sOTTDcx/Unknown%20image)

**Important Notes**

* Delivery orders will only be accepted **within the defined polygon**
* Addresses outside the delivery zone will be blocked at checkout
* Google usage fees are billed **directly by Google**, not Barnet
* Incorrect or missing APIs will prevent delivery validation from working

**Best Practices**

* Keep delivery zones simple (avoid overly complex shapes)
* Test a few addresses inside and outside the zone before going live
* Review zones periodically if your delivery area changes
* Ensure your API key remains active and billing is enabled in Google
