DistanceBased
Magento\InventoryInStorePickup\Model\SearchResult\Strategy\DistanceBased
What it does
This class implements a distance-based sorting strategy for in-store pickup locations in Magento's inventory management system.
Developers use this when customers search for pickup locations and results need to be ordered by proximity to a specified geographic area.
It calculates distances to available sources and sorts them accordingly, supporting both ascending and descending order.
Public Methods
- getSources()
- isApplicable()