InventoryDistanceBasedSourceSelection Module
Algorithms\DistanceBasedAlgorithm
This class implements a distance-based source selection algorithm for Magento's Multi-Source Inventory (MSI). Developers use it when they need to dete...
Convert\AddressToComponentsString
This class converts an address object into a formatted string of components used for geocoding or distance calculations in distance-based source selec...
Convert\AddressToQueryString
This class converts an AddressInterface object into a formatted query string for geocoding or distance calculation purposes. Developers use this when...
Convert\AddressToString
This class converts an AddressInterface object into a single string representation by concatenating address components (street, postcode, city, region...
Convert\LatLngToQueryString
This class converts latitude and longitude coordinates into a comma-separated string format (e.g., '40.7128,-74.0060'). Developers use this when prepa...
DistanceProvider\GetDistanceFromSourceToAddress
This class calculates the geographical distance between an inventory source location and a delivery address. Developers use this when implementing dis...
DistanceProvider\GetLatLngFromSource
This class retrieves geographic coordinates (latitude and longitude) from an inventory source. If the source already has coordinates stored, it return...
DistanceProvider\GoogleMap\GetApiKey
This class retrieves the Google Maps API key from Magento's configuration that is required for distance-based source selection calculations. Developer...
DistanceProvider\GoogleMap\GetDistance
This class calculates the distance or travel time between two geographic coordinates using Google Maps Distance Matrix API. Developers use it when imp...
DistanceProvider\GoogleMap\GetGeoCodesForAddress
This class retrieves geographic coordinates (latitude/longitude) for a given address by calling the Google Maps Geocoding API. Developers use this whe...
DistanceProvider\GoogleMap\GetLatLngFromAddress
This class converts physical addresses into geographic coordinates (latitude/longitude) using Google Maps Geocoding API. Developers use this when impl...
DistanceProvider\GoogleMap\GetLatsLngsFromAddress
This class retrieves geographic coordinates (latitude and longitude) from a physical address using Google Maps geocoding API. Developers use this when...
DistanceProvider\Offline\GetDistance
This class calculates the geographic distance in meters between two points on Earth using their latitude and longitude coordinates. Developers use thi...
DistanceProvider\Offline\GetLatLngFromAddress
This class converts physical addresses into geographic coordinates (latitude and longitude) using offline geocoding data stored in the database. Devel...
DistanceProvider\Offline\GetLatsLngsFromAddress
This class retrieves geographic coordinates (latitude and longitude) from a physical address using offline GeoNames data stored in Magento's database....
GetDistanceProviderCode
This class retrieves the configured distance provider code used for distance-based source selection in Magento's Multi-Source Inventory (MSI). Develop...
ImportGeoNames
This class handles importing geographical data (postal codes, cities, coordinates) from the GeoNames database for a specific country. Developers use t...
LatLng
This class represents a geographical coordinate pair (latitude and longitude) used in distance-based source selection for inventory. Developers use th...
ResourceModel\GetGeoNameDataByAddress
This class retrieves geographical coordinate data from the inventory_geoname table based on an address. It uses a fallback mechanism, first trying to...
ResourceModel\GetGeoNamesDataByAddress
This class retrieves geographical data (latitude, longitude, etc.) from the inventory_geoname database table based on a shipping address. Developers u...
ResourceModel\UpdateGeoNames
This class manages geographic location data in Magento's Multi-Source Inventory (MSI) system for distance-based source selection. Developers use it to...