# 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.

![](/files/753b44a762cf2f2769172dc9c973c780501fba1a)

**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

![](/files/892efe65653291c5e4c7e85bdc8eee7755060166)

![](/files/15f1a21f39eeb247c7b45d611087d2438a1fcbf7)

**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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.barnetpos.com/e-commerce/restricting-your-delivery-zone.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
