> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Auto-detect & prefill the delivery zip code

# Auto-detect the nearest pickup location

For stores with several pickup points, automatically sort and show the **nearest pickup locations at the top of the list** — so customers don't scroll to find their closest store.

|| This feature requires the **Smart** plan or above, and lives under **Integrations → Google Map** (it needs Google Map enabled with an API key).



## Overview

When you run multiple pickup locations, **Auto-detect nearest pickup** uses the pickup map to sort locations by proximity, putting the closest ones first. It's a sub-option of **Enable Google Map** on the Google Map integration page. Customers can still choose any location.

|| This only changes the **order** locations appear in — it doesn't restrict which locations customers can pick.



## Before you start

* You're on the Smart plan or above.
* You have **multiple pickup locations** — see [Manage your locations](#).
* **Google Map is enabled** with a valid API key — see [Google Maps API](#).



## How to enable it

Here's how, step by step:


### Step 1: Open the Google Map integration

Go to **Settings → Integrations → Google Map**.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_12vqhyh.png)

### Step 2: Enable Google Map (if not already)

Tick **Enable Google Map** — "Show pickup locations on a map for quick selection." If you don't have an API key yet, you'll be prompted to add one (see [Google Maps API](#)).

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_5f3of8.png)


### Step 3: Turn on Auto-detect nearest pickup

Tick **Auto-detect nearest pickup** — "Automatically sort and display the nearest pickup locations at the top of the list." Save.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_14c3aaa.png)




## How it looks on the storefront

The pickup location list is ordered by distance, with the closest locations to the customer shown first.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1p9dw7z.png)



## Common scenarios

### Chain with many branches

Surface the closest branch first so customers don't scroll a long list.

### Regional pickup points

Help customers land on their local point automatically.



## Configuration options

| Option | Description | Plan | Notes |
| ---- |
| Enable Google Map | Show pickup locations on a map | All plans | Requires API key |
| Auto-detect nearest pickup | Sort nearest locations to the top | Smart+ | Sub-option of Enable Google Map |



## Tips & Best practices

|| Most useful with several pickup locations and the map enabled — with one location there's nothing to sort.

| Keep each location's address accurate so "nearest" is calculated correctly.



## Troubleshooting

### It isn't sorting by nearest?

Confirm Google Map is enabled with a valid API key, the option is on, and your locations have accurate addresses.

### The option is disabled / greyed out?

It requires the Smart plan or above (and Google Map enabled).



## FAQ

### Does this stop customers choosing another location?

No — it only re-orders the list; customers can pick any location.

### How do I turn it off?

Untick **Auto-detect nearest pickup** under Integrations → Google Map.



## Related articles

* [Show the pickup search bar](https://help.omegatheme.com/en/article/show-the-pickup-search-bar-1xloh3i/)— Let customers search pickup locations *(General Settings & Integrations)*
* [🗺️ Google Maps API](https://help.omegatheme.com/en/article/google-maps-api-uptdxe/)— Enable the map + add the key *(General Settings & Integrations)*
* [Manage your locations: add, edit, and delete](https://help.omegatheme.com/en/article/manage-your-locations-add-edit-and-delete-1n88mk9/)— Set up your pickup points *(Locations)*



||| If you need further assistance, feel free to reach out to us via live chat or email at contact@omegatheme.com. We're happy to help!
