[OSM-talk] Accessing "center" feature from Overpass XML?
Bryce Nesbitt
bryce2 at obviously.com
Thu Oct 9 21:55:12 UTC 2014
I know how to use "out meta center;" in Overpass query language to get
the center of a way.
What's the equivalent in Overpass XML? I tried adding it to the
<print>, but I can't find documentation on <print> and the command is
rejected:
<osm-script output="xml" timeout="25">
<union>
<query type="node">
<has-kv k="amenity" v="toilets"/>
<bbox-query {{bbox}}/>
</query>
<query type="way">
<has-kv k="amenity" v="toilets"/>
<bbox-query {{bbox}}/>
</query>
</union>
<print mode="meta center"/>
<recurse type="down"/>
<print mode="meta center" order="quadtile"/>
</osm-script>
More information about the talk
mailing list