Log in
Model

GetLatLngFromAddress

Magento\InventoryDistanceBasedSourceSelectionApi\Model\GetLatLngFromAddress

What it does

This class converts physical addresses into geographic coordinates (latitude and longitude) for Magento 2's distance-based inventory source selection.

Developers use it when implementing shipping or inventory allocation features that need to calculate distances between customer addresses and warehouse locations.

It acts as a factory that delegates to the appropriate geocoding provider based on system configuration.

Public Methods

  • execute()