Polaris RZR Forum - RZR Forums.net banner

Gaia tracks imported to Ride Command??

2.4K views 3 replies 3 participants last post by  BigDemers  
#1 ·
is this possible?
If so please explain how.
 
#2 · (Edited)
I'm sure I've done this in the past without issues, but I keep getting errors trying to import the gpx file that I downloaded from Gaia for my latest planned ride. I did find a way to make it work, but it took a couple tweaks to the gpx file in a text editor.

I do not know which of these changes actually made it work, but here is what has been working for me tonight.
  1. Create and save a route in Gaia
  2. With the route open, select Export > GPX
  3. Open the GPX file in a text editor - I prefer something like Atom or Notepad++ that has a "beautify" plugin to set proper carriage returns and indentation for easier reading. There are likely online tools that will do the same thing, and I don't think this step is necessary, but it is easier on my eyes if it is formatted properly
  4. Using the text editor, do the following find and replacesteps:
    1. Find all instances of rtept and replace with trkpt
    2. Find all instances of rte and replace with trk
  5. Insert a new line before the first <trkpt> line and type <trkseg> on the line
  6. Insert a new line after the last </trkpt> and type </trkseg> on the line
  7. Save the updated gpx file
  8. On Ride Command website, select Import on the Tracked Rides page
  9. Upload the GPX file
  10. Select Import as Recorded Ride. Selecting Planned Route will dump most of the detail from your track.
Here is a very short snippet from one of my tracks that I just imported to show an example of what my steps above end up looking like.
XML:
<?xml version="1.0" ?>
<gpx creator="GaiaGPS" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  <trk>
    <name>My sweet track</name>
    <desc></desc>
    <extensions>
      <line xmlns="http://www.topografix.com/GPX/gpx_style/0/2">
        <color>2D3FC7</color>
      </line>
    </extensions>
    <trkseg>
      <trkpt lat="38.448385" lon="-118.781996">
        <ele>3198.7463135999215</ele>
      </trkpt>
      <trkpt lat="38.448391" lon="-118.781876">
        <ele>3197.1954105599075</ele>
      </trkpt>
      <trkpt lat="38.448364" lon="-118.781691">
        <ele>3192.5517158398743</ele>
      </trkpt>
    </trkseg>
  </trk>
</gpx>
 
#3 ·
I just went through the steps again and was able to cut down the number of steps and still make it work. I did confirm that the beautification is unnecessary, and using find/replace makes it mostly unnecessary. These are the abbreviated steps that worked:
  1. Create and save a route in Gaia
  2. With the route open, select Export > GPX
  3. Open the GPX file in a text editor
  4. Using the text editor, do the this find and replace step:
    • Find all instances of rte and replace with trk
  5. Type <trkseg> before the first occurrence of <trkpt>
  6. Type </trkseg> after the last occurrence of </trkpt>
  7. Save the updated gpx file
  8. On Ride Command website, select Import on the Tracked Rides page
  9. Upload the GPX file
  10. Select Import as Recorded Ride. Selecting Planned Route will dump most of the detail from your track.
 
#4 ·
This shorter version worked and thank you so much. One thing that i did not have to do was 5 and 6 just doing this was money below.. just one step.. this was from GAiA. this was done June 27th 2021
  • Find all instances of rte and replace with trk
thanks fro the work on this. i know it took time and getting through frustration.. really appreciate it.