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.