Overpass API/Public transport examples
Servers status · Versions · Development · Technical design · Installation · XAPI compatibility layer · Public transport sketch lines · Applications · Source code and issuesOverpass turbo · Wizard · Overpass turbo shortcuts · MapCSS stylesheets · Export to GeoJSON · more · Development · Source code and issues · Web siteOverpass Ultra · Examples · Overpass Ultra extensions · MapLibre stylesheets · URL Params · more · Source code and issues · Web site
Overpass API includes a feature to render public transport maps (a kind of linear maps). All the following example links on this wiki page are using the documented {{Sketch Line}} utility template.
The sketch_route tools have fallen out of focus. It is more likely that they would get a general overhaul before back in development. (since 2017) |
Usage
On this page you can choose the network, the line and the operator.
In order to get a specific rendering you can add the style:
- wuppertal, simple style with German abbreviations (default)
- padua, simple style with German abbreviations
- paris, style displaying also connections, with French abbreviations
- any style you provide.
Other options are summarily documented online on this webform, or better detailed with examples in the documentation of the {{Sketch Line}} template usable on this wiki.
The page display twice the stop of a route-relations using PTv2 as mentionned in this Overpass API issue. There is no plan to fix this problem soon.
Technical limitations
The linear maps system cannot recognise lines with an ampersand in ref=*. This issue affects the Hammersmith/Waterloo & City lines on the London Underground, where trying to do so will return the “No relation found” error.
Examples
Australia
City/Region | Network | Lines | Issues |
---|---|---|---|
Brisbane | Translink (rail) | BeenleighFerny Grove AirportGold Coast CabooltureSunshine Coast Redcliffe PeninsulaSpringfield ClevelandShorncliffe Doomben |
|
Queensland | QR Travel | Inlander Spirit of the Outback Spirit of Queensland Tilt Train Westlander |
France
City/Region | Network | Lines | Issues |
---|---|---|---|
Île-de-France | RER | ABE | Boissy-Saint-Léger branch of RER A is disconnected. All branches of RER B are broken. |
Transilien | KNPRU | Provins branch of Train P faces the wrong way, while the intermediate stations of the Crécy-la-Chapelle shuttle are missing. |
- Grenoble ("TAG" network): bus lines A, B, C, D, E
- Île-de-France ("RER" network): RER lines C, D
- Caen ("fr_twisto" network): bus lines 1, 10, 19 Express
- Paris ("RATP" network):
- Rennes ("FR:STAR" network: http://overpass-turbo.eu/s/kDG):
Germany
Greece
City/Region | Network | Lines | Issues |
---|---|---|---|
Athens | Metro | Μ1Μ2Μ3 | No faults |
Tram | Τ6Τ7 | No faults | |
Suburban Rail | A1A2A3A4 | No faults | |
Patras | Suburban Rail | Π1Π2 | No faults |
Ireland
Japan
- Tokyo Metropolitan Bureau of Transportation (Asakusa / "都営地下鉄" network) line A
Malaysia
Switzerland
- Bernmobil: 10
United Kingdom
United States
Semi-working examples
United Kingdom
- London Underground:
- Northern (Mill Hill East missing)
- Piccadilly (Heathrow loop not shown as loop)
Bad examples
- ref 12, Network empty -> part of Paris, part of Berlin :-(