[OSM-talk] OpenStreetMap newbie - help/guidance to convert OSM XML data to .gpx

Ángel de Vicente angel.vicente.garrido at gmail.com
Wed May 6 08:02:57 UTC 2015


Hi all,

a complete newbie to Openstreetmap here, so bear with me... Briefly, what
I'm, trying to achieve is the following: I have a .gpx file from a bike
ride, and I want to use the gps data to get images from those locations
from Google Street View. But, GPS not being that accurate, I first want to
massage the .gpx file and obtain a .gpx file where the coordinates have
been matched to the closest road.

By using https://mapmatching.3scale.net/ I manage to get a good match to
the closest road, but the format for the output file I get is not .gpx
anymore.

To give some details, the .gpx file I get comes from the Endomondo
application, and it looks like:


<?xml version="1.0" encoding="UTF-8"?>
[...]
    <trkseg>
      <trkpt lat="28.466029" lon="-16.269666">
        <time>2014-10-03T07:08:14Z</time>
      </trkpt>


After using the mapmatching website I get a xml file, which looks like:

<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><result><diary><entries><entry><route><link
src="278449946" id="101549311" dst="1172664894"/><link src=\
"1172664894" id="158914755" dst="278449944"/> [...]


I already have a script that, when given a .gpx file with the format above
will collect the images from Google Street View, with the correct compass
bearings, etc., so I would like to be able to convert the .xml file with
the OpenStreetMap references back to a .gpx format.

Is this possible somehow? Any help/guidance appreciated.

Thanks,
Ángel de Vicente
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20150506/178b16b3/attachment.html>


More information about the talk mailing list