Model
GetDistance
Magento\InventoryDistanceBasedSourceSelectionApi\Model\GetDistance
What it does
This class calculates the distance between two geographical points (latitude/longitude coordinates) using a configurable distance provider.
Developers use this when implementing distance-based source selection algorithms to determine how far inventory sources are from a delivery destination, allowing Magento to prioritize closer warehouses or pickup locations.
Public Methods
- execute()