I am currently trying to get the full bicycle node network for the netherlands using the overpass API and I noticed something very odd. At least one (and probably loads more) node has no relations for connections to other nodes.

By using the overpass query:

<id-query ref="15080799" type="node"/> <recurse type="node-relation"/> <print/>

I found that the only relation it is in is the bicycle node network for the province Utrecht. Which contains a number of relations that are connections between nodes, but none including this specific node.

If you look at the map at coordinates: 52.0917849 5.1047520 and set view to cycling, you see that this node 26 is connected by light blue lines to node 20 and it seems it's also connected to nodes 31, 38 and 23, but I can't find the data for that connection, I know it must exist because the line is there, but it doesn't seem to be a relation or a way...

can anyone tell me where to find it?

asked 21 Jan '13, 14:00

Zoefschildpad's gravatar image

Zoefschildpad
21224
accept rate: 0%


This map uses the following query to get the bicycle node data in an area: ?data=relation(bbox)[network=rcn];(way(r)(bbox);node(w););out+skel;node(bbox)[rcn_ref];out;

I can also see all the bicycle route relations around node 26 in Utrecht in JOSM, so they definitely exist as relations.

What query are you using to get the cycle node data from the Overpass API?

Edit:

I have not tested the query below, but I think it is the one you need to get the complete Dutch cycle node network. That is a lot of data, so you might need to fiddle with timeouts.

<union>
    <query type="relation">
        <has-kv k="type" v="network"/>
        <has-kv k="network" v="rcn"/>
        <has-kv k="addr:country" v="NL"/>
    </query>
    <recurse type="relation-node" into="nodes"/>
    <recurse type="relation-relation"/>
    <recurse type="relation-way"/>
    <recurse type="way-node"/>
</union>
<print/>
permanent link

answered 21 Jan '13, 19:16

cartinus's gravatar image

cartinus
7.0k964105
accept rate: 27%

edited 22 Jan '13, 23:52

This gets me the RCN by region (one big relation per region of nodes and relations):

<query type="relation">
<has-kv k="network" v="rcn"/>
<has-kv k="addr:country" v="NL"/>
</query>
<print/>

This should get me the nodes:

<query type="relation">
<has-kv k="network" v="rcn"/>
<has-kv k="addr:country" v="NL"/>
</query>
<recurse type="relation-node"/>
<print/>

but neither:

<query type="relation">
<has-kv k="network" v="rcn"/>
<has-kv k="addr:country" v="NL"/>
</query>
<recurse type="relation-relation"/>
<print/>

nor:

<query type="relation">
<has-kv k="network" v="rcn"/>
<has-kv k="addr:country" v="NL"/>
</query>
<recurse type="relation-node"/>
<recurse type="node-relation"/>
<print/>

nor:

<id-query ref="15080799" type="node"/>
<recurse type="node-relation" />
<print/>

gets me any relation containing node id 15080799 other than the one for all of Utrecht I got with the very first query

(21 Jan '13, 19:55) Zoefschildpad

Sometime last year some people have decided that the nodes no longer have to be part of the relations connecting the nodes. The whole of Flanders and large parts of the Netherlands are updated to this "improved" tagging scheme. See the changes to Cycle Node Network Tagging in October last year.

There is no need to add the junction nodes to this relation. They are part of the ways, so inherently already part of it. This allows for a more controlled way of downloading the hierarchy (collection/network/route).

(21 Jan '13, 20:12) cartinus
1

I'm confused, I'm not really getting the information I need from that page. Your quote hints at a good way to download the network but I haven't been able to find what that is... In fact, I fail to see what part of that page is different from what I'm attempting to do...

(21 Jan '13, 20:52) Zoefschildpad

The node as a relation member is only present in the network relation. The only other place where you will see the node is as a way node of one of the member ways of the three route relations ending at the node. See the query in my updated answer.

(22 Jan '13, 20:25) cartinus
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×193
×154
×66
×8

question asked: 21 Jan '13, 14:00

question was seen: 8,849 times

last updated: 22 Jan '13, 23:52

powered by OSQA