Skip to content

Commit 9ede0c3

Browse files
committed
Apply changes
1 parent 64b05f8 commit 9ede0c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Provider/Photon/Photon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function geocodeQuery(GeocodeQuery $query): Collection
7777
$url .= $osmTagFilters;
7878
}
7979
$bboxQueryString = $this->buildBboxFilterQuery($query);
80-
if ($bboxQueryString) {
80+
if (!is_null($bboxQueryString)) {
8181
$url .= $bboxQueryString;
8282
}
8383

@@ -200,7 +200,7 @@ private function buildBboxFilterQuery(GeocodeQuery $query): ?string
200200
return null;
201201
}
202202

203-
return '&bbox='.sprintf('%s,%s,%s,%s',
203+
return '&bbox='.sprintf('%f,%f,%f,%f',
204204
$query->getBounds()->getWest(),
205205
$query->getBounds()->getSouth(),
206206
$query->getBounds()->getEast(),

0 commit comments

Comments
 (0)