GetLatLngFromAddressInterface.php 754 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryDistanceBasedSourceSelectionApi\Api;
  8. /**
  9. * Get latitude and longitude object from address
  10. *
  11. * @api
  12. */
  13. interface GetLatLngFromAddressInterface
  14. {
  15. /**
  16. * Get latitude and longitude object from address
  17. *
  18. * @param \Magento\InventorySourceSelectionApi\Api\Data\AddressInterface $address
  19. * @return \Magento\InventoryDistanceBasedSourceSelectionApi\Api\Data\LatLngInterface
  20. */
  21. public function execute(
  22. \Magento\InventorySourceSelectionApi\Api\Data\AddressInterface $address
  23. ): \Magento\InventoryDistanceBasedSourceSelectionApi\Api\Data\LatLngInterface;
  24. }