Localize a Region in Store Locator

When you load the map that comes from the Google Maps JavaScript API, it applies a default bias for application behavior towards the United States.

If you want to change the localization (such as biasing geocoding results towards your region), you can override this default behavior by adding a region parameter to the <script> tag when loading the Store Locator map.

 Example

Without the script to change the region. Searching Toledo automatically populates in the US.

Without the Script

With the script and using the GB region. Searching Toledo now loads within Spain.

With the script

To localize a region in Store Locator, please follow the steps below.

 


 

Setup

  1. From the Shopify admin, select Apps.
  2. Select Store Locator.
  3. Select Need Help?.
  4. Select Google Map API Key.

    Select Google Map API Key

  5. Copy and paste &region=XX at the end of your API key.

    Enter &region=XX

  6. Replace the XX after region with your region.
    • Australia - AU
    • Canada - CA
    • France - FR
    • United Kingdom - GB
    • United States - US

    Change XX to Your Region

  7. Select Save.
Was this article helpful?
0 out of 0 found this helpful