Log in
Model

GetLatsLngsFromAddress

Magento\InventoryDistanceBasedSourceSelection\Model\DistanceProvider\Offline\GetLatsLngsFromAddress

What it does

This class retrieves geographic coordinates (latitude and longitude) from a physical address using offline GeoNames data stored in Magento's database.

Developers use this class in distance-based inventory source selection to determine the closest warehouse or pickup location to a customer's shipping address.

It implements a caching mechanism to avoid repeated database queries for the same address.

Public Methods

  • execute()