From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — OpenRailwayMap
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen Kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk bokmål norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português português do Brasil română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް
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)

OpenRailwayMap (previously called "Bahnkarte") is a detailed online map of the world's railway infrastructure, built on OpenStreetMap data. It has been available since mid-2013 at


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

This project was founded in December 2011 in order to create a world-wide, open, up-to-date and detailed map of the railway network, based on OpenStreetMap. The domain was registered on April 27th, 2013 and the corresponding website was launched in mid 2013. Since then it has received constant improvement. In February 2014 the project moved to a new server. In April 2014 a dedicated map for mobile phones was launched.

The OpenRailwayMap includes all rail-mounted and automotive vehicles, e.g. railways, subways, trams, miniature railways and funiculars. The map does not include aerialways, monorails, and maglevs.

The name OpenRailwayMap mostly refers to the online map, but the project also aims to support railroad-related data in OpenStreetMap. By developing a consistent data model, providing a mailing list for discussions, developing editor plugins, etc. the collection of this data is boosted and the data is made usable for other applications and developers.


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.

Resources: 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