How to show the distance to a location in miles?

How to show the distance to a location in miles?

The default Store Locator for Magento 2 functionality allows you to define the linear units to be used to show the distance on the Store Locator page. It is to be set in Stores → Configuration → Amasty Extensions → Store Locator → Store Locator Page → General Visual Settings → Distance Units.



Once set, the distance units will be updated on the frontend page.


      • Related Articles

      • What's the difference between Store Pickup, Store Locator and Store Pickup with Locator?

        Although the Store Pickup with Locator module allows both adding locations and selecting them for pickup on checkout, it cannot be replaced with a combination of the Store Locator and Store Pickup modules. The Store Pickup with Locator extension ...
      • How to configure the map so that the nearest location is automatically displayed?

        The Store Locator extension has the feature of zooming the map to let the customer easily find the nearest location. If you would like the nearest location to be shown for a customer automatically, you need to enable the option in the global ...
      • How to change the location marker?

        The Store Pickup with Locator allows uploading a custom location marker to be displayed on the map. To change the default one, please, navigate to Content → Locations → [Your Locations] → Location On Map and upload the marker image. Here is the ...
      • The location isn't displayed correctly on the map. How to fix this?

        When the location is configured, sometimes it can be wrongly displayed on the map. This happens when the longitude and latitude for the store location aren't specified correctly. You may check the values of those fields in Content → Locations → ...
      • Store Locator | GraphQl methods

        Queries amStoreLocatorAttributesToFilter description: get location attributes searchAmStoreLocations (filter: AmStoreLocationsFilterInput, pageSize: Int, currentPage: Int = 1) description: search all locations with filter Mutations ...