forked from Smile-SA/magento2-module-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapInterface.php
57 lines (52 loc) · 1.24 KB
/
MapInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @category Smile
* @package Smile\Map
* @author Aurelien FOUCRET <aurelien.foucret@smile.fr>
* @copyright 2016 Smile
* @license Apache License Version 2.0
*/
namespace Smile\Map\Api;
use Smile\Map\Api\Data\GeoPointInterface;
/**
* Map interface definition.
*
* @category Smile
* @package Smile\Map
* @author Aurelien FOUCRET <aurelien.foucret@smile.fr>
*/
interface MapInterface
{
/**
* Returns current map provider identifier.
*
* @return string
*/
public function getIdentifier();
/**
* Returns current map provider name.
*
* @return string
*/
public function getName();
/**
* Return current map configuration.
*
* @return array
*/
public function getConfig();
/**
* Returns the direction URL using the current provider.
*
* @param GeoPointInterface $dest Destination for the direction URL.
* @param GeoPointInterface $orig Optional origin for the direction URL.
*
* @return string
*/
public function getDirectionUrl(GeoPointInterface $dest, GeoPointInterface $orig = null);
}