How can I, with overpass turbo, use an inequality rather than an equality. For example if I’m looking for all villages higher than 700m above seal level I’d like to be able to do something such as:
[out:json][timeout:25];
// gather results
(
// query part for: “place=village and ele=700”
node["place"="village"]["ele">"700"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
Another example if if I’d also be looking for railways with a gauge wider than standard gauge (1435mm). I’d like to do the following request:
[out:json][timeout:25];
// gather results
(
way["railway"="rail"]["gauge">"1435"]({{bbox}});
relation["railway"="rail"]["gauge">"1435"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
However such a thing is not possible, as only = and ~= work. Inequalities are not supported. I understand that tags are technically strings and not integers, so perhaps converting the strings to integers should be necessary before a comparison is possible, but I don’t know how to achieve that.
I don’t know the internal structure of overpass, but this could be an extreme performance hit. If it uses indexes, it may force a brute force search, and if some brute force searching is already needed, it will increase the computational cost because of the need to parse the values.