This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Adding relations by using a GPX-file

2

Hi

I have some GPX-files (official local MTB-tracks) that I want to import in OSM. Therefore I'm looking for a way to select the roads that overlap with the GPX-route so I can add a relation to them.

Any suggestions on how I could do this easily?

Kind regards Yves

asked 27 Nov '20, 10:12

Yves%20Mu's gravatar image

Yves Mu
46114
accept rate: 0%


One Answer:

2

Given that you will likely have to split roads along the way I don't believe that there is currently any fully automatic way to do this. Your best bet on a desktop is to use JOSM to display the track over the data and then just split the ways where necessary and add them to the route relation.

A bit more luxurious would be what we are doing in https://twitter.com/vespucci_editor/status/1305863889607852032 which automatically splits and adds route segments,and would work with a GPX overlay too, maybe there is a JOSM plugin that does the same.

answered 27 Nov '20, 11:36

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .