Maps/Transport for London/Lines
1 London Underground - working out the lines
The routes are all there. However, few routes have route masters.
View all lines on map:
1.2 Table: All relations
The above overpass query produces a table. Here's a similar table, with some links put in.
|relation||London Underground||route||Jubilee line||Jubilee|
|relation||London Underground||route||Hammersmith & City||Hammersmith & City|
|relation||London Underground||route||Victoria Line: Brixton => Walthamstow Central||London Underground|
|relation||London Underground||route||Victoria Line: Walthamstow Central => Brixton||London Underground|
|relation||London Underground||route||Waterloo & City||Waterloo & City|
2 Inspecting the route relations
The stops should be ordered. Also, part of each route are certain features such as stops, as well as platforms. Lets check these.
2.1 Checking order of stops: route diagrams
Now that we have the lines, let's look at some diagrams to check the order of stops. This doesn't work well - the data in OSM isn't well organised for many lines. E.g.
- Victoria - ordered well
- Central - ordered poorly -> now fixed Bjoern (talk) 22:10, 10 May 2017 (BST)
Use the above table for more.
The order of stops are usefully inspected in JOSM.
This query is not useful, as the order of stops is not preserved. Though it tells you which stops have names.
However, you could do this:
This fetches stops and platforms - not perfect, but the only way I can think of:
2.2 Checking tagging of stops
You can also see in the line diagrams that some stops do not have names. Check that the object entered as "stop" is appropriately tagged.
The following script was developed first, and is incorporated in the above script (with slightly changed MapCSS).
2.3 Checking for platforms
This query checks for platforms. Platforms that are already in the relation are in green. The query then looks for nearby platforms (i.e. platforms near stops.) - those are in red. This work well is you have "show small objects as points". You can easily spot issues that way.
3 Route variations
As there aren't many route_masters, the route usually contains all variations. Let look at the central line. The central line route now needs breaking up into 5+ routes in each direction. The core part of the central line (North Acton -> Leytonstone, indicated by "...") is served by all routes, but towards either end of the line, these combinations are possible:
- West Ruislip -> ... -> Woodford -> Epping
- West Ruislip -> ... -> Woodford -> Hainault
- West Ruislip -> ... -> Newbury Park -> Hainault
- Ealing Broadway -> ... -> Newbury Park -> Hainault
- Ealing Broadway -> ... -> Epping
- ... sometimes the Epping trains terminate in Loughton (rather than continue to Epping), which strictly speaking is probably a separate route (or possibly two, as variants of 1 and 5)
Plus the same routes in reverse:
- Epping -> Woodford -> ... -> West Ruislip
- Hainault -> Woodford -> ... -> West Ruislip
- Hainault -> Newbury Park -> ... -> West Ruislip
- Hainault -> Newbury Park -> ... -> Ealing Broadway
- Epping -> Woodford -> ... -> Ealing Broadway
- Not sure whether trains can also start in Loughton, but presumably they can.
So this means that there would be about 5+5 routes (or perhaps 6+6) that would need to be created, and then combined into a route_master.
3.1 Route variations for all lines
|Network||Line||Variations (per direction)||Link|
|Hammersmith & City||1||https://tfl.gov.uk/tube/route/hammersmith-city|
|Northern||6 (all from/to Morden)||https://tfl.gov.uk/tube/route/northern/|
|Picadilly||3 (all from/to Cockfosters)||https://tfl.gov.uk/tube/route/piccadilly/|
|Waterloo & CIty||1||https://tfl.gov.uk/tube/route/waterloo-city|