I use [Cycle.travel](http://cycle.travel/) to draw cycling routes. However, the Android application I use on my smartphone only supports KML.

As an alternative to GPSVisualizer, I tried the command-line utility GPSBabel, but, besides turning a compact 5K GPX into a much bigger 80K KML, the route is displayed as a long series of waypoints instead of a simple line:

![enter image description here](https://i.stack.imgur.com/ZSazY.png)

Does someone know of an alternative **command-line utility** to GPSBabel?

Here's a sample from the source GPX file and the KML generated by GPSBabel:

GPX

```
<trk>
<name>ACTIVE LOG</name>
<trkseg>
<trkpt lat="48.81569" lon="2.31610" />
<trkpt lat="48.81579" lon="2.31590" />
…
<trkpt lat="48.75456" lon="2.18915" />
<trkpt lat="48.75510" lon="2.18814" />
</trkseg>
</trk>

```

KML from GpsBabel

```
…
    <LookAt>
      <longitude>2.252120</longitude>
      <latitude>48.785320</latitude>
      <range>15131.199708</range>
    </LookAt>
    <!-- Normal track style -->
    <Style id="track_n">
      <IconStyle>
        <scale>.5</scale>
        <Icon>
          <href>http://earth.google.com/images/kml-icons/track-directional/track-none.png</href>
        </Icon>
      </IconStyle>
      <LabelStyle>
        <scale>0</scale>
      </LabelStyle>
    </Style>
…
…
<![CDATA[<table>
<tr><td><b>Distance</b> 9.8 mi </td></tr>
</table>]]>
</description>
        <Folder>
          <name>Points</name>
          <Placemark>
            <name>ACTIVE LOG-0</name>
            <snippet/>
            <description><![CDATA[
<table>
<tr><td>Longitude: 2.316100 </td></tr>
<tr><td>Latitude: 48.815690 </td></tr>
<tr><td>Heading: 2.0 </td></tr>
</table>
…
        <Placemark>
          <name>Path</name>
          <styleUrl>#lineStyle</styleUrl>
          <LineString>
            <tessellate>1</tessellate>
            <coordinates>
2.316100,48.815690
2.315900,48.815790
…
2.189150,48.754560
2.188140,48.755100
</coordinates>
          </LineString>
        </Placemark>
      </Folder>
    </Folder>
  </Document>
</kml>

```