You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Overpass Turbo you can add if block statements to query by conditions. For example, if I want all roads that include tunnels, I can query: way["tunnel"="yes"]["highway"](if: length() > 80)(area); out;
Currently, I don't believe there is any way to do this using the overpassQueryBuilder.
If you add this 'if' block to the selector argument, the 'if' block becomes enveloped in [] in the query string: way["tunnel"="yes"]["highway"][(if: length() > 80)](area.searchArea););
This causes an error.
Is there currently any functionality to support 'if' block conditions when querying the Overpass API?
The text was updated successfully, but these errors were encountered:
Sadly, there has not been implemented such functionality. I would suggest to not use the overpassQueryBuilder in this (and similar cases) but write the query as a string. Sorry.
Using Overpass Turbo you can add if block statements to query by conditions. For example, if I want all roads that include tunnels, I can query:
way["tunnel"="yes"]["highway"](if: length() > 80)(area); out;
Currently, I don't believe there is any way to do this using the
overpassQueryBuilder
.If you add this 'if' block to the
selector
argument, the 'if' block becomes enveloped in [] in the query string:way["tunnel"="yes"]["highway"][(if: length() > 80)](area.searchArea););
This causes an error.
Is there currently any functionality to support 'if' block conditions when querying the Overpass API?
The text was updated successfully, but these errors were encountered: