@@ 191-195 (lines=5) @@ | ||
188 | ); |
|
189 | } |
|
190 | ||
191 | if (null !== $locationType = $query->getData('location_type')) { |
|
192 | $urlParameters['types'] = is_array($locationType) ? implode(',', $locationType) : $locationType; |
|
193 | } else { |
|
194 | $urlParameters['types'] = self::DEFAULT_TYPE; |
|
195 | } |
|
196 | ||
197 | if ($urlParameters) { |
|
198 | $url .= '?'.http_build_query($urlParameters); |
|
@@ 214-218 (lines=5) @@ | ||
211 | $coordinate->getLatitude() |
|
212 | ); |
|
213 | ||
214 | if (null !== $locationType = $query->getData('location_type')) { |
|
215 | $urlParameters['types'] = is_array($locationType) ? implode(',', $locationType) : $locationType; |
|
216 | } else { |
|
217 | $urlParameters['types'] = self::DEFAULT_TYPE; |
|
218 | } |
|
219 | ||
220 | if ($urlParameters) { |
|
221 | $url .= '?'.http_build_query($urlParameters); |