Log in
Model

AddressToQueryString

Magento\InventoryDistanceBasedSourceSelection\Model\Convert\AddressToQueryString

What it does

This class converts an AddressInterface object into a formatted query string for geocoding or distance calculation purposes.

Developers use this when implementing distance-based source selection algorithms to create a standardized address string that can be sent to external mapping/geocoding APIs to determine the closest inventory source to a customer's shipping address.

Public Methods

  • execute()