Maps/Transport for London/examples

From Bjoern Hassler's website
Jump to: navigation, search

A good way to find your way round he London public transport tagging scheme is by looking at some examples. You'll want to familiarise yourself with Overpass_turbo.

1 Viewing route_masters and routes for network=London Buses Underground / Overground / etc[edit]

Recommended Network tags:

London Underground
London Overground
Docklands Light Railway
London Buses
London River Services
National Rail
London Tramlink
Crossrail
TfL Rail

1.1 London Buses[edit]

1.1.1 Query by network=London Buses[edit]

This is very complete: route_masters and routes for most lines.

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name;true;" | ")][timeout:25];
{{sel=["network"~"London Buses"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

However, if extend this set, we see that sometimes network=TfL.

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,type,network,name;true;" | ")][timeout:25];
{{sel=["network"~"London Bus"]["type"~"route"]}}
(
  relation{{sel}};
);
(._ ; <<; >>;) -> .b;
(relation.b;);
out meta qt;

1.1.2 Query by relation type=network, name=London Buses[edit]

There is a relation with type=network 5732270 (XML, iD, JOSM, Potlatch2, history, analyse, manage, gpx) which has all route masters in it:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,type,network,name;true;" | ")][timeout:25];
{{sel=[name="London Buses"]}}
(
  relation{{sel}};
);
out meta qt;

By recursing down from this relation, we find all bus routes:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,type,network,name;true;" | ")][timeout:25];
{{sel=[name="London Buses"]}}
(
  relation{{sel}};
);
(._ ; <<; >>;) -> .b;
(relation.b;);
out meta qt;

1.2 London Underground[edit]

7225135 (XML, iD, JOSM, Potlatch2, history, analyse, manage, gpx)

The routes are all there. However, few routes have route masters.

List:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London Underground"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

View on map:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:json][timeout:25];
{{sel=["network"~"London Underground"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom qt;

1.3 London Overground[edit]

7225139 (XML, iD, JOSM, Potlatch2, history, analyse, manage, gpx)

Presumably this finds all routes. However, few routes have route masters.

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London Overground"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:json][timeout:25];
{{sel=["network"~"London Overground"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom qt;

1.4 Docklands Light Railway[edit]

7225140 (XML, iD, JOSM, Potlatch2, history, analyse, manage, gpx)

It seems that DLR is used, which should be replaced by Docklands Light Railway.

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"Docklands Light Railway"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;
Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"DLR"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Show the output on a map indicates that it's probably complete:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:json][timeout:25];
{{sel=["network"~"DLR|Docklands"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom;

However, it's not split into routes: https://en.wikipedia.org/wiki/Docklands_Light_Railway.

1.5 Crossrail[edit]

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"Crossrail"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

This doesn't look complete yet:

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:json][timeout:25];
{{sel=["network"~"Crossrail"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom;

https://en.wikipedia.org/wiki/Crossrail

1.6 These don't produce anything[edit]

1.6.1 TfL Rail[edit]

https://en.wikipedia.org/wiki/TfL_Rail

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"TfL Rail"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

1.6.2 London Tramlink[edit]

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London Tramlink"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

1.6.3 London River Services[edit]

Overpass-turbo (run)
Overpass-turbo (run)
Overpass-turbo (view)
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London River Services"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;