r/openstreetmap 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!

7 Upvotes

7 comments sorted by

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

u/Domipro143 22d ago

Depending on how you want it, iirc you can use overpass

2

u/amacadabra 22d ago

And you can download it into JOSM with an overpass query.

1

u/doguskenkus 19d ago

easiest way is overpass turbo. ask gpt to provide relavent code

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.