Model
GetDistance
Magento\InventoryDistanceBasedSourceSelection\Model\DistanceProvider\Offline\GetDistance
What it does
This class calculates the geographic distance in meters between two points on Earth using their latitude and longitude coordinates.
Developers use this for offline distance calculations in the inventory distance-based source selection algorithm, which helps determine the nearest warehouse or source to a delivery destination without making external API calls.
Public Methods
- execute()