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