Network Rail Railway routes UK

Evening all,

Does anyone have a GPX or KML or some other file I can import in to Google My Maps of all the Network Rail Railway routes in England, Scotland and Wales please?

I’m at a loss on how to get this info.

Thank you in advance.

This is an openstreetmap forum.

Google maps is very off-topic,

Okay let me rephrase it.

How can I use openstreetmaps to extract the Network Rail Routes to be a gpx/klm file?

1 Like

I’m not sure how complete the data is, and exactly what you want to do with it / use it for may affect things, but it may be that you want to search for ways that are members of relations tagged with type=route + route=railway. Here’s one such example: Relation: ‪Ely to Norwich Line‬ (‪17015934‬) | OpenStreetMap .

But such a query will also return things you probably don’t want, such as the route of the preserved/heritage “Mid Norfolk Railway”: Relation: ‪North Elmham Branch‬ (‪17012397‬) | OpenStreetMap . So you’ll probably need to do some filtering on the ref=* values from those relations (which appear to be the Engineer’s Line References). RailwayData | Line Files & Gradient Profiles might help you there.

There are various options to filter and export data from OSM. The Overpass API might be suitable for what you want, but I don’t think it offers KML as an output format, so you’d need something to convert what you get at the end.

1 Like

Thank you.

Heritage lines wouldn’t be a problem I could keep them in.

Overall I have all the gpx coordinates of all the stations so I was hoping to be able to link them all up on one map