[OSM-talk] specific Relations
Matthias Julius
lists at julius-net.net
Fri Oct 19 18:13:47 BST 2007
Stephen Gower <socks-openstreetmap.org at earth.li> writes:
> For me, it would be great to be allowed to do something like
>
> <relation id="1976">
> <tag k="type" v="route" />
> <tag k="name" v="Oxford Bus 5" />
> <member type="node" ref="123" role="bus_stop" />
> <member type="node" ref="321" role="bus_stop">
> <tag k="restriction" v="board_only" />
> </member>
> </relation>
What is wrong with
<relation id="1977">
<tag k="restriction" v="board_only" />
<member type="node" ref="321" role="" />
</relation>
<relation id="1976">
<tag k="type" v="route" />
<tag k="name" v="Oxford Bus 5" />
<member type="node" ref="123" role="bus_stop" />
<member type="relation" ref="1977" role="bus_stop" />
</relation>
>
> I realise you probably understood what I was saying; I wrote that
> out to see if I could spot a technical reason why it can't work -
> but I've very little experience in this direction, so it doesn't
> surprise me I haven't.
The problem is that whatever structure is in the XML data has to be
translated into the database schema used by the API. To keep that
simple the XML should be simple, too.
Matthias
More information about the talk
mailing list