@@ 192-196 (lines=5) @@ | ||
189 | ); |
|
190 | } |
|
191 | ||
192 | if (null !== $locationType = $query->getData('location_type')) { |
|
193 | $urlParameters['types'] = is_array($locationType) ? implode(',', $locationType) : $locationType; |
|
194 | } else { |
|
195 | $urlParameters['types'] = self::DEFAULT_TYPE; |
|
196 | } |
|
197 | ||
198 | if (null !== $fuzzyMatch = $query->getData('fuzzy_match')) { |
|
199 | $urlParameters['fuzzyMatch'] = $fuzzyMatch ? 'true' : 'false'; |
|
@@ 219-223 (lines=5) @@ | ||
216 | $coordinate->getLatitude() |
|
217 | ); |
|
218 | ||
219 | if (null !== $locationType = $query->getData('location_type')) { |
|
220 | $urlParameters['types'] = is_array($locationType) ? implode(',', $locationType) : $locationType; |
|
221 | } else { |
|
222 | $urlParameters['types'] = self::DEFAULT_TYPE; |
|
223 | } |
|
224 | ||
225 | if ($urlParameters) { |
|
226 | $url .= '?'.http_build_query($urlParameters); |