[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

<osm-script output="xml" timeout="25">
    <query type="node">
      <has-kv k="amenity" v="toilets"/>
      <bbox-query {{bbox}}/>
    <query type="way">
      <has-kv k="amenity" v="toilets"/>
      <bbox-query {{bbox}}/>
  <print mode="meta center"/>
  <recurse type="down"/>
  <print mode="meta center" order="quadtile"/>

More information about the talk mailing list