marook / osm-read

an openstreetmap XML and PBF data parser for node.js and the browser
GNU Lesser General Public License v3.0
107 stars 25 forks source link

Get tag "center" from overpass-api response xml #32

Closed Able1991 closed 8 years ago

Able1991 commented 8 years ago

I have the following result after the call to overpass-api (for output 'way' i use 'out center;' command):

<way id="43989209">
    <center lat="68.9280397" lon="33.1139458"/>
    <nd ref="559363044"/>
    <nd ref="559362513"/>
    <nd ref="559362515"/>
    <nd ref="559362512"/>
    <nd ref="559363044"/>
    <tag k="addr:city" v="Мурманск"/>
    <tag k="addr:housenumber" v="110"/>
    <tag k="addr:street" v="Кольский проспект"/>
    <tag k="building" v="yes"/>
    <tag k="name" v="Олимп Авто"/>
    <tag k="shop" v="car"/>
    <tag k="website" v="http://olimp-avto.lada.ru/"/>
  </way>

Unfortunately, callback 'way' is not getting this tag... You may suggest a solution to this problem?

marook commented 8 years ago

It's not supported right now. Feel free to submit a pull request which adds the functionality.

marook commented 8 years ago

The change is now part of v0.6.0