When I use quickOSM in QGIS to download OSM data, I check the "relations" option, but then?
My need is the following :
- Download OSM data for a specific area
- In the table for the "point" geometry, I add a field : "StreetName"
- For all nodes having a non empty addr:housenumber attribute, I want to get the street name from the relation "associatedStreet > Name" and fill the field created in 2.
The thing is, I can't find the relation anywhere. Example : https://www.openstreetmap.org/node/685883404 I would have "Rue des vinaigriers" in my field.
This is my query
<osm-script output="xml" timeout="25">
<union>
<query type="node">
<bbox-query {{bbox}}/>
</query>
<query type="way">
<bbox-query {{bbox}}/>
</query>
<query type="relation">
<has-kv k="type" v="associatedStreet"/>
<bbox-query {{bbox}}/>
</query>
</union>
<union>
<item/>
<recurse type="down"/>
</union>
<print mode="body"/>
</osm-script>
I tried with recurse type = relation-node
, relation-way
, with both of them...