GetDistanceToSources
Magento\InventoryInStorePickup\Model\SearchRequest\Area\GetDistanceToSources
What it does
This class calculates and retrieves distances from customer locations to available inventory sources for in-store pickup functionality.
Developers use this when implementing store locator features or determining which physical stores are within a specified radius of a customer's search location.
It caches distance calculations to improve performance for repeated searches.
Public Methods
- execute()