GetDistanceInterface.php 812 B

12345678910111213141516171819202122232425262728
  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 distance between two LatLngRequest points
  10. *
  11. * @api
  12. */
  13. interface GetDistanceInterface
  14. {
  15. /**
  16. * Get distance between two points
  17. *
  18. * @param \Magento\InventoryDistanceBasedSourceSelectionApi\Api\Data\LatLngInterface $source
  19. * @param \Magento\InventoryDistanceBasedSourceSelectionApi\Api\Data\LatLngInterface $destination
  20. * @return float
  21. */
  22. public function execute(
  23. \Magento\InventoryDistanceBasedSourceSelectionApi\Api\Data\LatLngInterface $source,
  24. \Magento\InventoryDistanceBasedSourceSelectionApi\Api\Data\LatLngInterface $destination
  25. ): float;
  26. }