Open multimeric opened 3 months ago
The boolean option seems like a good addition, in the meantime, you can import OverpassTagFilterBuilderImp or OverpassExistsTagFilterHelper and instance it yourself:
const exists = new OverpassExistsTagFilterHelper(false); // negated: false
const not_exists = new OverpassExistsTagFilterHelper(true); // negated: true
I want to represent
way[highway]
, which is a nice simple expression in Overpass QL.As far as I can tell, the simplest way to represent the above query is this:
In terms of line number it's not an issue, but I find the amount of nested functions makes it hard to parse:
My first suggestion is if you could extend the object syntax ("
OverpassQueryTagFitlerObject
") to allow booleans to check for existence:Another alternative might be to just make the builder object a constant: