I am trying to get a road entire coordinates using this code
<osm-script output="json">
<id-query ref="32809713" type="way"/>
<!-- added by auto repair -->
<union>
<item/>
<recurse type="down"/>
</union>
<!-- end of auto repair -->
<print/>
</osm-script>
The problem with this code is, it only takes part of a road, not entire road. What is wrong?
Best Answer
since the road named I5 is segmented in OSM, you have to query the
ref
value instead of the id of a segment:You will get some data from Europe as well, which you can filter out by setting a bbox or area selection.
If your road has no reference number, but a
name
, you can search for that too: