I found this similar question. I tried this on my queries, but none worked as when using {{bbbox}}
.
My coordinates are the following: -56.236095,-34.927072,-56.094131,-34.849064
, which were generated using http://lxbarth.com/bbox/
In the following query, if I use {{bbox}}
instead of the coordinates, I do get the corresponding information. If I put the coords, then the results are empty.
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type=route & route=bus”
*/
[out:json][timeout:25];
// gather results
(
// query part for: “type=route and route=bus”
relation["type"="route"]["route"="bus"](-56.236095,-34.927072,-56.094131,-34.849064);
);
// print results
out body;
>;
out skel qt;
EDIT ANSWER: The coords were written in a wrong order. That is why I had no results.
asked
04 Apr '18, 17:54
mel
16●2●2●5
accept rate:
0%
You can look in the "Data" tab to see what coordinates the {{bbox}} is putting in, just to make sure they match up reasonably closely with the coordinates you are using in the query.
for prosperity; Overpass API value order is: minimum latitude, minimum longitude, maximum latitude, maximum longitude ~ from Bounding Box.