Skip to content

Commit 43cc5af

Browse files
authored
AB#54863: Fix broken URL in string template resulting in unbound query (#441)
1 parent 6bce428 commit 43cc5af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/map/stopMapContainer.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,7 @@ const fetchOSMObjects = async props => {
320320
let results;
321321
try {
322322
const osmData = await fetch(
323-
`https://nominatim.openstreetmap.org/search.php?q=subway_entrance&
324-
viewbox=${props.maxInterestLon}%2C${props.maxInterestLat}%2C${props.minInterestLon}%2C${props.minInterestLat}
325-
&bounded=1&format=json&namedetails=1`,
323+
`https://nominatim.openstreetmap.org/search.php?q=subway_entrance&viewbox=${props.maxInterestLon}%2C${props.maxInterestLat}%2C${props.minInterestLon}%2C${props.minInterestLat}&bounded=1&format=json&namedetails=1`,
326324
);
327325
results = await osmData.json();
328326
} catch (e) {

0 commit comments

Comments
 (0)