Log in
Model

GetApiKey

Magento\InventoryDistanceBasedSourceSelection\Model\DistanceProvider\GoogleMap\GetApiKey

What it does

This class retrieves the Google Maps API key from Magento's configuration that is required for distance-based source selection calculations.

Developers use this when implementing inventory source selection based on geographic distance, ensuring the API key is configured before making Google Maps API calls to calculate distances between locations.

Public Methods

  • execute()