Model
AddressToComponentsString
Magento\InventoryDistanceBasedSourceSelection\Model\Convert\AddressToComponentsString
What it does
This class converts an address object into a formatted string of components used for geocoding or distance calculations in distance-based source selection.
Developers use this when implementing inventory source selection based on geographic proximity, as it formats address data into a pipe-separated string with component labels (country and locality) suitable for Google Maps API or similar geocoding services.
Public Methods
- execute()