tyrasd / osmtogeojson

convert osm to geojson
http://tyrasd.github.io/osmtogeojson/
MIT License
683 stars 112 forks source link

Polygon role inner/out role is not being displayed #103

Open KidA001 opened 5 years ago

KidA001 commented 5 years ago

I'm query the OSM API with the following request http://overpass-api.de/api/map?bbox=-119.86475115542854%2C34.410451138127065%2C-119.85719244457147%2C34.416207261872934

This data returns polygons that have role's of inner and outer

When I use OSMToGeoJSON to convert osmtogeojson {input_path.xml} > {output_path} the returned JSON is missing relation/role data:

{
          "type" => "Feature",
            "id" => "relation/298655",
    "properties" => {
               "timestamp" => "2018-05-25T17:18:44Z",
                 "version" => "3",
               "changeset" => "59277135",
                    "user" => "escallic",
                     "uid" => "2110789",
               "addr:city" => "Isla Vista",
        "addr:housenumber" => "6660",
           "addr:postcode" => "93117",
             "addr:street" => "Abrego Road",
                "building" => "yes",
                    "type" => "multipolygon",
                      "id" => "relation/298655"
    },
      "geometry" => {
               "type" => "Polygon",
        "coordinates" => [
            [0] [ .....]
      }
}

Am I doing something wrong, or is this data getting stripped?