Log in
Model

AddressToString

Magento\InventoryDistanceBasedSourceSelection\Model\Convert\AddressToString

What it does

This class converts an AddressInterface object into a single string representation by concatenating address components (street, postcode, city, region, country) with spaces.

Developers use this when they need to format addresses for distance-based source selection calculations, such as when sending address data to geocoding services or distance calculation APIs.

Public Methods

  • execute()