London public transport tagging scheme/Examples

From OpenStreetMap Wiki
Jump to navigation Jump to search

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

Viewing route_masters and routes for network=London Buses, London Underground etc

Recommended Network tags:

Docklands Light Railway
Elizabeth line
Emirates Air Line
London Buses
London Overground
London River Services
London Trams
London Underground
National Rail
TfL Rail

Docklands Light Railway

See relation Docklands Light Railway for all routes.

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"Docklands Light Railway"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"Docklands Light Railway"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom;

Elizabeth line

See relation Elizabeth line for all routes.

This doesn't produce anything.

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"Elizabeth line"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Emirates Air Line

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"Emirates Air Line"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"Emirates Air Line"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom;

London Buses

See relation London Buses for all routes.

Query by network=London Buses

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

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name;true;" | ")][timeout:25];
{{sel=["network"~"London Buses"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Query by relation type=network, name=London Buses

This retrieves the network relation:

try it yourself in overpass-turbo
[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:

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

London Overground

See relation London Overground for all routes.

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London Overground"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"London Overground"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom qt;

London River Services

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London River Services"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"London River Services"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom qt;

London Trams

See relation London Trams for all routes.

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London Trams"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"London Trams"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom;

London Underground

See relation London Underground for all routes.

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"London Underground"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"London Underground"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom qt;

TfL Rail

See relation TfL Rail for all routes.

List:

try it yourself in overpass-turbo
[out:csv(::type,::id,network,type,name)][timeout:25];
{{sel=["network"~"TfL Rail"]["type"~"route"]}}
(
  relation{{sel}};
);
out meta qt;

Map:

try it yourself in overpass-turbo
[out:json][timeout:25];
{{sel=["network"~"TfL Rail"]["type"~"route"]}}
(
  relation{{sel}};
);
out geom qt;