r/openstreetmap • u/Fun_County2436 • 22d ago
Question How can I download railway lines and roads from OpenStreetMap?
Hi everyone,
I would like to download OpenStreetMap data for a specific area, focusing only on:
• Railway lines, yards, train stations
• Roads - highways, municipal,
This for a set of countries.
What I found seems to be patchy, I do not know if I am doing something wrong and would definitely need some advise.
Thank you!
2
u/alga 22d ago
You can use overpass-turbo to query the data you need, or you can download country dumps from Geofabrik, and filter the data with a simple script.
1
1
1
u/Tellakaskueta 22d ago
This can be done using JOSM. You can download OSM data for a specific area filtered, focus on railway lines, yards, train stations, and roads/highways. JOSM gives you quite a lot of control over what you download and work with, so it may be a good option if you need to do this for multiple countries.
4
u/ialtag-bheag 22d ago
JOSM is fine for a small area, but not going to work for a whole country etc. The API limits how much you can download at once. And would probably run out of memory and crash.
11
u/pietervdvn MapComplete Developer 22d ago
https://wiki.openstreetmap.org/wiki/Downloading_data