@@ 81-87 (lines=7) @@ | ||
78 | }); |
|
79 | } |
|
80 | ||
81 | public function geocode(string $value) : self |
|
82 | { |
|
83 | $cacheKey = str_slug(strtolower(urlencode($value))); |
|
84 | $this->results = $this->cacheRequest($cacheKey, [$value], "geocode"); |
|
85 | ||
86 | return $this; |
|
87 | } |
|
88 | ||
89 | public function geocodeQuery(GeocodeQuery $query) : self |
|
90 | { |
|
@@ 150-156 (lines=7) @@ | ||
147 | return $this; |
|
148 | } |
|
149 | ||
150 | public function reverse(float $latitude, float $longitude) : self |
|
151 | { |
|
152 | $cacheKey = str_slug(strtolower(urlencode("{$latitude}-{$longitude}"))); |
|
153 | $this->results = $this->cacheRequest($cacheKey, [$latitude, $longitude], "reverse"); |
|
154 | ||
155 | return $this; |
|
156 | } |
|
157 | ||
158 | public function reverseQuery(ReverseQuery $query) : self |
|
159 | { |