Skip to content

Commit 8355793

Browse files
damienalexandrejbelien
authored andcommitted
Fix Mapbox Query build when there is Bound (#906)
1 parent e96e3aa commit 8355793

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5+
## To be release
6+
7+
### Fixed
8+
9+
- Fix the Bounds query builder format
10+
511
## 1.0.0
612

713
First release of this library.

Mapbox.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ public function geocodeQuery(GeocodeQuery $query): Collection
179179

180180
$urlParameters = [];
181181
if ($query->getBounds()) {
182+
// Format is "minLon,minLat,maxLon,maxLat"
182183
$urlParameters['bbox'] = sprintf(
183-
'%s,%s|%s,%s',
184+
'%s,%s,%s,%s',
184185
$query->getBounds()->getWest(),
185186
$query->getBounds()->getSouth(),
186187
$query->getBounds()->getEast(),

0 commit comments

Comments
 (0)