1 | <?php namespace Arcanedev\GeoLocation\Google; |
||
14 | class GoogleManager extends Manager implements GoogleManagerContract |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Main Methods |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | * Get a google service. |
||
23 | * |
||
24 | * @param string $driver |
||
25 | * |
||
26 | * @return \Arcanedev\GeoLocation\Google\AbstractService |
||
27 | */ |
||
28 | public function driver($driver = null) |
||
32 | |||
33 | /** |
||
34 | * Create the google directions service. |
||
35 | * |
||
36 | * @return \Arcanedev\GeoLocation\Google\AbstractService |
||
37 | */ |
||
38 | 15 | public function createDirectionsDriver() |
|
42 | |||
43 | /** |
||
44 | * Create the google distance matrix service. |
||
45 | * |
||
46 | * @return \Arcanedev\GeoLocation\Google\AbstractService |
||
47 | */ |
||
48 | 21 | public function createDistanceMatrixDriver() |
|
52 | |||
53 | /** |
||
54 | * Create the google elevation service. |
||
55 | * |
||
56 | * @return \Arcanedev\GeoLocation\Google\AbstractService |
||
57 | */ |
||
58 | 12 | public function createElevationDriver() |
|
62 | |||
63 | /** |
||
64 | * Create the google geocoding service. |
||
65 | * |
||
66 | * @return \Arcanedev\GeoLocation\Google\AbstractService |
||
67 | */ |
||
68 | 9 | public function createGeocodingDriver() |
|
72 | |||
73 | /** |
||
74 | * Get the default driver name. |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getDefaultDriver() |
||
82 | |||
83 | /* ----------------------------------------------------------------- |
||
84 | | Other Methods |
||
85 | | ----------------------------------------------------------------- |
||
86 | */ |
||
87 | |||
88 | /** |
||
89 | * Build a google service. |
||
90 | * |
||
91 | * @param string $name |
||
92 | * |
||
93 | * @return \Arcanedev\GeoLocation\Google\AbstractService |
||
94 | */ |
||
95 | 57 | protected function buildService($name) |
|
104 | |||
105 | /** |
||
106 | * Get the config repository. |
||
107 | * |
||
108 | * @return mixed |
||
109 | */ |
||
110 | 57 | protected function config() |
|
114 | |||
115 | /** |
||
116 | * Get the http client. |
||
117 | * |
||
118 | * @return \GuzzleHttp\ClientInterface |
||
119 | */ |
||
120 | 57 | protected function getHttpClient() |
|
124 | } |
||
125 |