From OpenStreetMap Wiki
Jump to navigation Jump to search
Permissible speeds at the Stuttgart Main station, including its surrounding light rail tracks. OpenRailwayMap maxspeed data is put as an overlay on top of on a pre-installed offline map in OsmAnd (see three easy steps to do that).
A map section showing the northern and of the Nürnberg–Munich high-speed line, including track types, station names, track numbers and milestones (as of April 2014)

Le projet OpenRailwayMap (auparavant baptisé "Bahnkarte") est une carte détaillée en ligne des infrastructures ferroviaires mondiales, basées sur les données d'OpenStreetMap. Il est accessible depuis la mi-2013 sur le site


Some railways in the greater Stuttgart area (on a mobile phone)

Ce projet a été fondé en décembre 2011 afin d'établir une carte mondiale, ouverte, à jour et détaillée des réseaux ferroviaires, basée sur OpenStreetMap. Le nom de domaine a été enregistré le 27 avril 2013 et le site correspondant a été mis en ligne à la mi 2013. Depuis, il a reçu des améliorations constantes. En février 2014, le projet a été déplacé sur un nouveau serveur. En avril 2014, une carte dédiée aux téléphones portables a été lancée.

Le projet OpenRailwayMap concerne tous les véhicules sur rail et transport guidé, c'est à dire le chemin de fer, le métro, les trams, le chemin de fer miniature et les funiculaires. La carte ne comprend pas le métro aérien, les monorails, et maglevs.

Le nom OpenRailwayMap fait généralement référence à la carte en ligne. Mais le projet a aussi pour objectif d'apporter des informations concernant le chemin de fer à OpenStreetMap. En développant un référentiel de données consistent, en fournissant une liste d'emails pour les discussions, en développant des plugins pour la mise à jour, le recueil de ces données est amélioré et les données sont rendues utilisables pour d'autres applications et développeurs.


OpenRailwayMap aims to provide a new quality of railway maps and offers the following benefits:

  • Worldwide coverage: So far, there is no railway map covering the whole world, just single countries.
  • Open source and open data: Currently there are also no maps of railway networks, who supply not just rendered maps, but also the raw geodata. All current maps do not offer such data under free licenses. This project is based on OpenStreetMap data which is published under the Open Database License.
  • Up-to-date and detailed: This map aims to profit from crowdsourcing. Lots of people around the world with a good local knowledge can edit this map to make it detailed and already up-to-date.
  • OpenStreetMap: There are already many maps based on OpenStreetMap, e.g. for sailing, cycling, hiking, motorcars, public transport, skiing, power networks and many more. However, there is no railroad map so far.

Use cases

There are several good reasons for creating an open, comprehensive railway map of the world. Just some just cases:

  • Simulation: Detailed railroad data is an excellent source for simulating trains and signal boxes realisticly.
  • Research: Scientists and researchers can use the data to analyse the railroad network, simulate changes and use it for educational purposes.
  • Plans for model trains: This detailed railroad data is a good data source for railway enthusiasts, who want to build a railroad line as a model. With this data you do not need to record the railroad tracks anymore.
  • Enthusiasts: There are many people interested in railways, e.g. trainspotters. For those people this map provides a detailed information source of the railroad network.
  • Basemap for realtime traffic: Other applications can use this map to track the position of trains or to provide a realtime view of the trains' current position. You can also think of applications showing construction sites, detours, blockings and the traffic density.
  • Routing: With a detailed mapped railway infrastructure you could develop a routing application.
  • Public transport: This map and the data are an important data source for public transport applications like timetables, routing, ... .


For the average mapper mapping the railroad network is a bit more complicated than mapping streets or POIs, but there are some suitable ways of mapping:

  • Aerial imagery: Railroad tracks can easily be drawn based on aerial imagery, if high-resolution images are available for your area. With those imagery you can map even great yards simply from home. If you have access to very good high-resolution imagery (e.g. Aerowest), you can also see platforms or even signals.
  • In trains: In areas without high-resolution aerial imagery you can track the railroad lines with the GPS while sitting in the train. You should give attention to a sufficient GPS signal in the train to generate exact tracks (see WikiProject_Germany/Railway).
  • Along the railroad lines: Especially in rural areas the railroad lines can be accessed easily from ways parallel to the tracks. From there you can map signals or milestones fast, easy and safe. Crossings and bridges are also a good possibility to have a look at a part of the railroad line.
  • Stations: In stations you can map a lot of details without risk and easy to access.
  • Other sources: Public data, data sources with usage permission, use pictures from trainspotters or videos from the driver's cab after getting their permission,

Note: In all ways of mapping, you have to respect some rules:

  • Don't violate general laws: Don't enter railroad areas without permission, don't interrupt the railroad traffic, ... . Use just data you can get from public location (examples are mentioned some lines before)
  • Don't put yourself at risk
  • Don't use illegal, non-public, confidential or legally doubtful data sources
  • Don't violate copyright laws and don't copy from other maps

For newbies: You can donate data, but do not know, how to get into OSM? You have interesting information you can share, but no time to do this yourself? Contact us and send your data with a permission so that we might be able do some mapping for you.


A map of permissible speeds with hillshades
  • Three overlays based on numerous backgrounds (including hillshades)
    • for infrastructure (including milestones, switches, track numbers, signal boxes)
    • for signals
    • for maximum track speeds
  • Numerous search features, stations, milestones and level crossings
  • Permalinks
  • Dedicated version for mobile phones, open approach for flexible integration in 3rd party applications (such as OsmAnd)
  • Daily updates, starting at around 1:00 in the morning (Central European Time), taking about four hours.
  • Multiple languages, including: Czech, Danish, Dutch, English, French, German, Greek, N'ko, Polish, Portugese, Russian, Slovenian, Spanish, Swedish, Ukrainian and Vietnamese. As much as 22 translations are available or underway. Translations are coordinated via Transifex.

Some examples

Permissible speeds on the Frankfurt-Cologne high-speed railway line, near Frankfurt airport

There is still a long way to go for both the software and railway data. However, there is are already quite some fine examples of OpenRailwayMap's quality:


For mappers it is recommended to ignore the complex tagging scheme and to use the JOSM presets made for single countries. The presets simplify the complex and general tagging and makes it easy to use without learning tags.

Country-specific tagging

There are lists of important objects in different countries with examples of how to tag them. Everybody can add a country or add examples to an existing country.

On these pages you can find country-specific information about mapping signals or working rules correctly. There are also some illustrated practical tagging examples. Everybody is invited to add more countries or add some examples for an existing country.

JOSM presets

For easier mapping you can use the JOSM preset files.

So far, one dedicated JOSM preset has been created. It is aimed at German railway lines and available in the preset directory. There is more information on JOSM tagging presets at the JOSM Tagging presets Wiki page.

Any further presets are very much appreciated. See Contribute.


Search for railway line numbers and milestones

OpenRailwayMap is Open Source software and is freely available for download under the GPL version 3. It is runs on Linux and services its contents via Apache web server, PHP and Javascript. It is furthermore based on Leaflet, Kothic JS, NodeJS, node-tileserver, osmfilter, osmconvert, osmupdate, osm2pgsql, PostgreSQL and PostGIS. There is also a changelog.

To request certain data, you can use our API. There is also a possiblity to include the tiles into other applications. For more information about the terms of use and technical details, please read the API documentation.

Bug reports and suggestions should be reported at the bugtracking system. Users without a Github account can also get in touch with the developers.


Contributors are welcome to help as programmers, translators or designers. Please contact us if you want to contribute.

Mapping: The usability of this map depends on the data. Please use your knowledge to keep the mapped information up-to-date and insert more details!

Programming: You created an interesting new feature or fixed a bug in the existing code? Please send me your code and we will add it.

Translating: OpenRailwayMap wants to be available for many users and in many languages. Please translate the application, the preset files or this wiki page to other languages!

Design: The current design is not very good. Please help to improve it or improve the support in many browsers.

Ressources: OpenRailwayMap is currently just a project run in my free time, so needed resources like hardware or domains are limited. You are welcome to support me with these resources!

JOSM-Presets: Create JOSM presets and styles for different countries!

Examples: Add images to the tagging examples or create example pages for new countries!

'Bug reports, browsertests and feature suggestions are desired. Please contact us.

The authors list contains some of the main contributors.


This project is operated by the developers in their spare time and has no commercial goals. By making a donation you can show that you appreciate the voluntary work of the developers and can motivate them to continue the project in the future.

But any donation is not only a form of recognition, but also a financial contribution to the costs that are caused by server, domains, etc.. Only with enough donations the project can be provided without advertising and for free also in the future.

Donations can be made via Paypal and Flattr. On request, donations by bank transfer can be arranged.


To contact us, please use one of the following ways:

Mailing list and IRC



See also