Log in
Model

GetGeoNameDataByAddress

Magento\InventoryDistanceBasedSourceSelection\Model\ResourceModel\GetGeoNameDataByAddress

What it does

This class retrieves geographical coordinate data from the inventory_geoname table based on an address.

It uses a fallback mechanism, first trying to match by postcode, then by city, and finally by region.

Developers use this when implementing distance-based source selection to find latitude/longitude coordinates for shipping addresses or inventory sources.

Public Methods

  • execute()