@@ 88-94 (lines=7) @@ | ||
85 | }); |
|
86 | } |
|
87 | ||
88 | public function geocode(string $value) : self |
|
89 | { |
|
90 | $cacheKey = str_slug(strtolower(urlencode($value))); |
|
91 | $this->results = $this->cacheRequest($cacheKey, [$value], "geocode"); |
|
92 | ||
93 | return $this; |
|
94 | } |
|
95 | ||
96 | public function geocodeQuery(GeocodeQuery $query) : self |
|
97 | { |
|
@@ 157-163 (lines=7) @@ | ||
154 | return $this; |
|
155 | } |
|
156 | ||
157 | public function reverse(float $latitude, float $longitude) : self |
|
158 | { |
|
159 | $cacheKey = str_slug(strtolower(urlencode("{$latitude}-{$longitude}"))); |
|
160 | $this->results = $this->cacheRequest($cacheKey, [$latitude, $longitude], "reverse"); |
|
161 | ||
162 | return $this; |
|
163 | } |
|
164 | ||
165 | public function reverseQuery(ReverseQuery $query) : self |
|
166 | { |