Log in
Model

ImportGeoNames

Magento\InventoryDistanceBasedSourceSelection\Model\ImportGeoNames

What it does

This class handles importing geographical data (postal codes, cities, coordinates) from the GeoNames database for a specific country.

Developers use this to populate the geographic location data needed for distance-based inventory source selection, enabling the system to calculate distances between customer addresses and warehouse locations.

It downloads country-specific ZIP files, extracts the data, and imports it into the database.

Public Methods

  • execute()