Localize a Region in Store Locator

Follow

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 of Localization:

Without the Script

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

With the script

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

To localize a region in Store Locator, please follow these steps:

  1. From Shopify's admin, select Apps.

    Select Apps

  2. Select Store Locator.

    Select Store Locator

  3. Select Need Help?.

    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.

    Select Save

That's it! 

Next Steps:

Blog Posts:

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.