Log in
Model

GetGeoCodesForAddress

Magento\InventoryDistanceBasedSourceSelection\Model\DistanceProvider\GoogleMap\GetGeoCodesForAddress

What it does

This class retrieves geographic coordinates (latitude/longitude) for a given address by calling the Google Maps Geocoding API.

Developers use this when implementing distance-based source selection to calculate distances between customer addresses and inventory sources.

It handles API communication, formats address data for the Google API, and returns geocoding results.

Public Methods

  • execute()