osmlab / learnoverpass

LearnOverpass is the definitive, one stop learning resource for the Overpass API.
https://osmlab.github.io/learnoverpass/en/
71 stars 23 forks source link

Example for out modifiers #8

Closed mmd-osm closed 9 years ago

mmd-osm commented 9 years ago

out modifiers are quite useful, but somehow get a bit lost on the respective page

How about adding a query, which demonstrates all of them at once:

[date:"2014-12-30T00:00:00Z"];
way(34345085);
out geom; 
out center;        // not a centroid, e.g. not guaranteed to lie inside polygon
out bb;            // bounding box

bb

Secretmapper commented 9 years ago

Awesome sample and I think this could work!

Alternatively, I've been meaning to address this in another way. I'm currently reworking the embedded map of Overpass Turbo to allow 'caching' of data, so that it'd be super easy and fast to 'change queries' and show the different modifiers quickly with a click of the button (almost like a click and compare feature)

I'll try how that feels, but I don't see any disadvantage of using this as an 'uber' example that shows all of the modifiers at once :)