James,<div><br>Seems like a bit of a mess alright. Take a look at the approved proposal for public transport which should be the standard to work towards I would think - <a href="http://wiki.openstreetmap.org/wiki/Proposed_features/Public_Transport">http://wiki.openstreetmap.org/wiki/Proposed_features/Public_Transport</a></div>
<div><br></div><div>I attempted to apply this to Kew Gardens station a while back (<a href="http://www.openstreetmap.org/?lat=51.47707&lon=-0.28496&zoom=17">http://www.openstreetmap.org/?lat=51.47707&lon=-0.28496&zoom=17</a>) it's not exactly straightforward, and I'm not sure how well it would work when the station is entirely underground like much of central London.</div>
<div><br></div><div>Aidan<br><br><div class="gmail_quote">On 8 March 2013 21:05, James Churchman <span dir="ltr"><<a href="mailto:jameschurchman@gmail.com" target="_blank">jameschurchman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guys<br>
<br>
I was originally attempting to get all the London Underground Tube<br>
stations and Rail stations from OSM ( london xml file )<br>
<br>
The issues with the data I have had are :<br>
<br>
1) Some stations are tagged as Nodes, some as Ways and some as Relations<br>
<br>
London Bridge is large area Way:<br>
<a href="http://www.openstreetmap.org/edit?lat=51.50426&lon=-0.084887&zoom=18" target="_blank">http://www.openstreetmap.org/edit?lat=51.50426&lon=-0.084887&zoom=18</a><br>
and is tagged as a "building" of type "station" and "railway" "station"<br>
<br>
Westminister Tube station is tagged as a Node<br>
<a href="http://www.openstreetmap.org/edit?lat=51.501144&lon=-0.125211&zoom=19" target="_blank">http://www.openstreetmap.org/edit?lat=51.501144&lon=-0.125211&zoom=19</a><br>
of type "railway" "station" this possibly makes sense to be a Node as<br>
its too small to be a Way..<br>
<br>
Waterloo station is a Way<br>
<a href="http://www.openstreetmap.org/edit?lat=51.503282&lon=-0.113125&zoom=18" target="_blank">http://www.openstreetmap.org/edit?lat=51.503282&lon=-0.113125&zoom=18</a><br>
but this time type "building" "station" ( rather than "train_station"<br>
as London bridge is ) ( and also "railway" "station" )<br>
but it's also grouped as a Relation of type "site" "railway_station"<br>
<br>
<br>
<br>
Maybe some being Nodes, Ways or Relations makes good sense, but maybe<br>
it does not... maybe all stations should be a Node ( London Bridge has<br>
no Nodes just a single Way ) and then station buildings should just be<br>
buildings.. that would at least be more consistant .. the buildings<br>
could always be put into a Relation with the Node if needed ?<br>
<br>
Also types of "train_station" and "station" etc... should this not be<br>
standardised?<br>
<br>
<br>
2) Stations tagged multiple times (this is a much bigger problem) !<br>
<br>
Approximately 75 % of all London Underground Tube stations are tagged<br>
with a Node multiple times, the distribution looks like this:<br>
<br>
0 times : e.g. London Bridge, this is only a Way there is no Node for<br>
either the Rail or Tube<br>
<br>
1 single time : this is the rarest case and as far as I can see the correct case<br>
Borough, Farringdon, St James' Park, Westminister and a few others are<br>
the few single tagged Tube stations in London<br>
<br>
e.g Farringdon looks fine<br>
<a href="http://www.openstreetmap.org/edit?mlat=51.52056&mlon=-0.10504&zoom=18" target="_blank">http://www.openstreetmap.org/edit?mlat=51.52056&mlon=-0.10504&zoom=18</a><br>
its a single node of "railway" type "station" and has the two<br>
"networks" correctly attributed to it of "National Rail;London<br>
Underground". The only issue that i can see with Farringdon is as with<br>
many other tube stations it has a additional russian name "name:ru" of<br>
"Фаррингдон"<br>
<br>
<br>
2,3,4 or even more tages for the same station ..<br>
<br>
High Street Kensington :<br>
<a href="http://www.openstreetmap.org/edit?lat=51.5008&lon=-0.19269&zoom=19" target="_blank">http://www.openstreetmap.org/edit?lat=51.5008&lon=-0.19269&zoom=19</a> has<br>
4 tags .. each one joined to a rail line<br>
<br>
Piccadilly Circus<br>
<a href="http://www.openstreetmap.org/edit?lat=51.510003&lon=-0.134754&zoom=18" target="_blank">http://www.openstreetmap.org/edit?lat=51.510003&lon=-0.134754&zoom=18</a><br>
is tagged twice ( once under a different way )<br>
<br>
Lambeth North is again tagged twice ( once under a way )<br>
<a href="http://www.openstreetmap.org/edit?lat=51.499021&lon=-0.112524&zoom=18" target="_blank">http://www.openstreetmap.org/edit?lat=51.499021&lon=-0.112524&zoom=18</a><br>
<br>
Oxford Circus Tube Station is not taged at all. but instead the 4<br>
exits are tagged singularly as type "railway" and "subway_entrance" ..<br>
<a href="http://www.openstreetmap.org/edit?lat=51.515258&lon=-0.141406&zoom=18" target="_blank">http://www.openstreetmap.org/edit?lat=51.515258&lon=-0.141406&zoom=18</a><br>
though they all do seem to be grouped into a Relation of<br>
"public_transport" "stop_area"<br>
Is this level of tagging required, and would an actual "station" tag<br>
in the centre of these 4 entrances simply denoting the station itself<br>
be better ? ---as it is no station at all is plotted on <a href="http://osm.org" target="_blank">osm.org</a><br>
<br>
Green Park Tube Station is similar again with no tagged station but<br>
many tagged entrances<br>
<a href="https://maps.google.co.uk/maps?client=safari&oe=UTF-8&ie=UTF-8&q=green+park&fb=1&gl=uk&hq=green+park&cid=0,0,15806140768408957347&ei=8To6UcfADM-w7AbP_oHQCA&ved=0CKwBEPwSMAA" target="_blank">https://maps.google.co.uk/maps?client=safari&oe=UTF-8&ie=UTF-8&q=green+park&fb=1&gl=uk&hq=green+park&cid=0,0,15806140768408957347&ei=8To6UcfADM-w7AbP_oHQCA&ved=0CKwBEPwSMAA</a><br>
<a href="http://www.openstreetmap.org/edit?lat=51.506934&lon=-0.142474&zoom=18" target="_blank">http://www.openstreetmap.org/edit?lat=51.506934&lon=-0.142474&zoom=18</a><br>
<br>
<br>
Waterloo Station is tagged once as a large area Way, and then 5<br>
separate times as well as Nodes detonating a station<br>
<a href="http://www.openstreetmap.org/edit?lat=51.50246&lon=-0.11246&zoom=17" target="_blank">http://www.openstreetmap.org/edit?lat=51.50246&lon=-0.11246&zoom=17</a><br>
they are dotted all about the place, some on lower layers, some for<br>
one train line or another ..<br>
<br>
<br>
3 ) Also there is the issue of networks tagging ..<br>
Some stations are tagged as "London Underground" or "National Rail" as<br>
they should, but some that are both a dual are tagged with two nodes<br>
one for each rather that a single node of "National Rail;London<br>
Underground" for example. eg Kensington Olympia is tagged twice, once<br>
with "London Overground" and once with "National Rail;London<br>
Underground"<br>
<br>
<br>
So in conclusion the problems I have found with Rail and Tube stations are :<br>
a) Tagged as Ways, Nodes or Relations; sometimes all 3, sometimes just<br>
a Node, sometimes a building Way of type "station", but no Node.<br>
<br>
b) Duplicated stations: sometimes an identical tagging many many many<br>
times. Sometimes the Rail and the Tube are placed as separate stations<br>
when they should be combined, sometimes there is a Way and also a<br>
Node, sometimes there is a station for every Rail line/track that<br>
comes into the actual station<br>
<br>
c) Stations are not taged at all, but instead the exits are all tagged<br>
as an exit, that are sometimes grouped as a exit relation<br>
<br>
d) Inconsistant tagging eg some are "train_station" and others just "station"<br>
<br>
( e) odd Russian names for many of the stations )<br>
<br>
<br>
This is just from the ones I have looked at so far, I will look<br>
further in the mean time but asking from the OSM data the position of<br>
Rail and Tube stations in London is a very non-trivial task. Is there<br>
something missing from my understating, or does a refurbishment of the<br>
rail stations data for London needed? maybe something like every<br>
station is a single node placed at the approximate center, and then<br>
"exits" or station buildings are separately tagged and grouped into<br>
relations a long with the original point, and that a standard<br>
"station" and not the "railway_station" tag is chosen ? Also do these<br>
kinds of issues exist for other cities both around the uk and the data<br>
for the rest of the world, and is it limited to stations?<br>
<br>
Hope this has been helpful & can hopefully can get a discussion going<br>
about what i am missing and what might be able to be done to help!<br>
<br>
Best regards<br>
<br>
James<br>
<br>
_______________________________________________<br>
Talk-GB mailing list<br>
<a href="mailto:Talk-GB@openstreetmap.org">Talk-GB@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-gb" target="_blank">http://lists.openstreetmap.org/listinfo/talk-gb</a><br>
</blockquote></div><br></div>