@@ 99-105 (lines=7) @@ | ||
96 | }); |
|
97 | } |
|
98 | ||
99 | public function geocode(string $value) : self |
|
100 | { |
|
101 | $cacheKey = (new Str)->slug(strtolower(urlencode($value))); |
|
102 | $this->results = $this->cacheRequest($cacheKey, [$value], "geocode"); |
|
103 | ||
104 | return $this; |
|
105 | } |
|
106 | ||
107 | public function geocodeQuery(GeocodeQuery $query) : self |
|
108 | { |
|
@@ 170-176 (lines=7) @@ | ||
167 | return $this; |
|
168 | } |
|
169 | ||
170 | public function reverse(float $latitude, float $longitude) : self |
|
171 | { |
|
172 | $cacheKey = (new Str)->slug(strtolower(urlencode("{$latitude}-{$longitude}"))); |
|
173 | $this->results = $this->cacheRequest($cacheKey, [$latitude, $longitude], "reverse"); |
|
174 | ||
175 | return $this; |
|
176 | } |
|
177 | ||
178 | public function reverseQuery(ReverseQuery $query) : self |
|
179 | { |