This article explains how to configure the location picker to use either Pop-up with address search or Drawer with address search in the Location selection feature.
Step 1: Open the Location picker settings
From Shop from selected location, go to Rule settings > Location picker settings.

Step 2: Select the picker type
Under Picker type, open the dropdown and select either Pop-up with address search or Drawer with address search.

For example, select Pop-up with address search to configure the pop-up version instead of the slide-in drawer.
Step 3: Configure the picker settings
Google map API key
Create and provide your own Google Maps API key to use the address search feature. For instructions, refer to Create Google Maps API key.
Optionally enable the Haversine method
Important: To use the Haversine method, all locations in Shopify must have a valid address and be geocoded. Locations without a valid address or geocoding will not be included in distance calculations.
Enable the Haversine method to calculate straight-line distances using latitude and longitude instead of Google’s Distance Matrix API. This can help reduce API costs.
Note: Distances calculated using the Haversine method are straight-line distances, not driving distances.
Step 4: Configure the location rule and display settings
Configure the Location rule and customize how the location picker appears to customers.
Tip: Use the Preview section to see how your changes appear as you configure these settings.
- Location rule: Choose how a location is selected after an address is matched.
- Show locations ordered by closest first, set by the maximum number of locations. The picker will display 10 locations by default.
- Auto-select the closest location within a distance by distance or drawn area.
- Distance – Use a maximum distance. For locations without their own radius, use the default values or customize them.
- Set the default maximum distance in m/km for auto-select (minimum of 1 km/mile), and customize it for each store location you have.
- Set the matched location message that is shown when a closest location is found. Use the placeholder {{location-name}} for the location name.
- Change the “Continue” button label if preferred.
- Set a custom message when a nearby location is not found. You can use {{distance}} and {{unit}} for the search radius.
- Set the default maximum distance in m/km for auto-select (minimum of 1 km/mile), and customize it for each store location you have.
- Drawn area – Draw one or more boxes on the map for each location.
- Draw coverage for each store location you have.
- Set the matched location message that is shown when a closest location is found. Use the placeholder {{location-name}} for the location name.
- Change the “Continue” button label if preferred.
- Set a custom message when a nearby location is not found. You can use {{distance}} and {{unit}} for the search radius.
- Draw coverage for each store location you have.
- Distance – Use a maximum distance. For locations without their own radius, use the default values or customize them.
- Show locations ordered by closest first, set by the maximum number of locations. The picker will display 10 locations by default.
- Orientation: Set how the location picker is arranged in the interface between Horizontal and Vertical.
- Location selector type: Choose how customers select a location from the available options using a Radio button or Location card.
- Header text: Customize the heading displayed in the location picker.
- Placeholder text: Set the guide text displayed in an input field before the customer enters a value.
- Description: Add explanatory text to help customers understand the location picker or how to use it.
Step 5: Save your changes
After configuring the location picker, remember to save your changes. You can preview your configuration in the storefront view.
If you have any questions, please contact our support team.