Talk:Overpass turbo/Templates

From OpenStreetMap Wiki
Jump to: navigation, search

Howto create templates with two keys

I looked for the way to associate two key in a single query, but I did not find the answer here.

Two keys
Example : "amenity"="bicycle_parking" AND "bicycle_parking" = "stands"
[out:json][timeout:25];
node ["amenity"="bicycle_parking"]["bicycle_parking"="stands"] ({{bbox}});
out body;
>;
out skel qt;
Two key, one of which is empty
Example : "amenity"="bicycle_parking" AND "bicycle_parking" is NULL
[out:json][timeout:25];
node ["amenity"="bicycle_parking"] ["bicycle_parking"!~"."] ({{bbox}});
out body;
>; 
out skel qt;