Main Roads and Railways Map

Welcome to our main roads and railways map. It shows the roads and railway lines around the world at 10 metres, from motorways down to the minor roads and lanes between villages, each cell marked with the kind of road or railway crossing it, as one of the landing hazards our tools weigh up alongside the water, the trees and the ground. Town side streets, driveways and farm tracks are left out: it is the roads that carry through traffic, and the railway lines, that a rocket or parachute must be kept away from.

You are welcome to download and use the data from here, or through the Main Roads & Railways API for automated fetching. It sits alongside the Inland Water API, the Tree Canopy API and the Terrain Grid API, all in the same simple file layout.

Download the square File layout and API
Close in, zoom 12 and nearer
Motorway and trunk
A road
B road
Tertiary and minor road
Heavy railway
Medium railway
Light and heritage railway
Zoomed out
Any road or railway
At the map centre
54.40000, -2.95000
Here
No main road or railway
Within 100 m
none
Nearest road or railway
none within 500 m
Ground
40 m above sea level
Hover over the map, or tap it on a phone, for the reading at any spot. The view is kept in the address bar, so a link opens the same place.

The roads and railways database

The roads and railways are as mapped when each area was last built. Each database file is a whole degree square, and a square with neither in it is not stored at all.

What the map shows

Every cell of about 10 metres holds one of seven classes: motorways and trunk roads, A roads, B roads, tertiary and minor roads, and heavy, medium, and light and heritage railways. Close in, each is drawn in its own colour, as the key shows. Any cell a road or railway crosses at all takes its class, so each is an unbroken line of cells however it runs, and where two cross in one cell the worse hazard is kept: a motorway over a railway, a railway over a B road. Slip roads count as their road, and the minor roads and lanes between villages and farms (OpenStreetMap's unclassified roads) count with tertiary roads. Anything in a tunnel is left out, and so are town side streets, driveways, car parks and farm tracks.

Zoomed out, a pixel covers far more ground than one cell, so zoomed out every road and railway is drawn in one amber, its strength showing how much of the pixel it fills; a pixel with any in it keeps a clear line of colour, so they stay in view as you zoom out.

Where the data comes from

The roads and railways come from OpenStreetMap, the open map of the world, through the regional extracts Geofabrik publish. Main roads and railway lines are among the most completely mapped things in OpenStreetMap almost everywhere, so this layer is close to complete worldwide. The database currently covers United Kingdom, Europe, North America, Australia & New Zealand and Japan.

Why a rocketry site maps roads and railways

A rocket under a parachute drifts with the wind, and a field that looks well clear of traffic can have a main road or a railway line a few hundred metres downwind. A rocket or parachute coming down on a busy road or a line is a danger to the people on it as well as to the rocket, and recovering one from a carriageway or a railway is worse. Knowing where they are around a launch site shows which way the drift must not go and how short it has to be kept.

The same data is going into the Altimeter Cloud Landing & Radio tool, alongside the water, the trees and the ground, for the chance of a landing on or near a road or railway before anyone flies.

Use the data in your own projects

Everything on this map is available through the free Main Roads & Railways API, no key needed: any square up to 30 km across around a point, every cell as its class in three bits, all seven classes or just those you ask for, uncompressed or packed with zlib or LZMA. The download panel on the map does the same thing from here: put the cross on your site, choose the size and compression, and save the file.

The file uses the same 32 byte header as the water and tree canopy files, with three bits a cell, eight cells to every three bytes. Before compression, near Windermere (54°N):

SquareCellsRaw
1 km108 × 1867.4 KB
3 km324 × 55666 KB
5 km540 × 926183 KB
10 km1,078 × 1,850731 KB
20 km2,156 × 3,7002.9 MB
30 km3,234 × 5,5506.4 MB
Main roads and railways cover a tiny share of the ground, so compression takes these down to a small fraction of their raw size.

Questions

Why is a road I know of missing?

Town side streets, driveways, car parks and farm tracks are left out on purpose. A road between places that is missing is most likely mapped in OpenStreetMap as one of those (in parts of the world, rural roads were first mapped as residential streets), or has been built since the area was last built. Disused and dismantled railways are left out too.

Why is an area blank?

Either there is no main road or railway there, or the area is not in the database yet. Hovering says which: it names the data source where there is coverage and says when an area is not in the database.

Roads and railways: OpenStreetMap data © OpenStreetMap contributors, ODbL, via Geofabrik, reduced to a yes or no a cell by Altimeter Cloud. Ground height: Terrain Tiles (Mapzen / Tilezen, on AWS Open Data), reduced into resolution tiers by Altimeter Cloud: ArcticDEM terrain data DEM(s) were created from DigitalGlobe, Inc., imagery and funded under National Science Foundation awards 1043681, 1559691, and 1542736; Australia terrain data © Commonwealth of Australia (Geoscience Australia) 2017; Austria terrain data © offene Daten Österreichs – Digitales Geländemodell (DGM) Österreich; Canada terrain data contains information licensed under the Open Government Licence – Canada; Europe terrain data produced using Copernicus data and information funded by the European Union - EU-DEM layers; Global ETOPO1 terrain data U.S. National Oceanic and Atmospheric Administration; Mexico terrain data source: INEGI, Continental relief, 2016; New Zealand terrain data Copyright 2011 Crown copyright (c) Land Information New Zealand and the New Zealand Government (All rights reserved); Norway terrain data © Kartverket; United Kingdom terrain data © Environment Agency copyright and/or database right 2015. All rights reserved; United States 3DEP (formerly NED) and global GMTED2010 and SRTM terrain data courtesy of the U.S. Geological Survey. Imagery © Esri, Maxar, Earthstar Geographics. Map data © OpenStreetMap contributors, OpenTopoMap (CC BY-SA). Place search by Photon (komoot). The data on this map is made available under the Open Database License (ODbL) 1.0, as it contains OpenStreetMap data.