Importing GXP/KMZ(L) created by Google MyTracks

Started by drfie, March 09, 2016, 11:12:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

drfie

Hi,

when importing a GPX file created by Google MyTracks, it is imported well, but the activity type is not imported. The GPX file looks like this:
<gpx version="1.1" creator="Created by Google My Tracks on Android" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.topografix.com/GPX/Private/TopoGrafix/0/1 http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topografix.xsd">
<metadata><name>2016-02-20 08:57</name><desc>Jizerky</desc></metadata>
<trk>
<name>2016-02-20 08:57</name>
<desc>Jizerky</desc>
<type>cross-country skiing</type>
<extensions><topografix:color>c0c0c0</topografix:color></extensions>
<trkseg><trkpt lat="50.800432" lon="15.130012"><ele>825.7</ele><time>2016-02-20T07:57:36.529Z</time></trkpt>...

It should be "cross-country skiing".



on the other hand, when importing KMZ, description is not imported. KML looks like this:
<kml><Document>
<open>1</open>
<visibility>1</visibility>
<name>2016-02-20 08:57</name>
<atom:author><atom:name>Created by Google My Tracks on Android</atom:name></atom:author>
<Style id="track"><LineStyle><color>7f0000ff</color><width>4</width></LineStyle><IconStyle><scale>1.3</scale><Icon><href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href></Icon></IconStyle></Style>
<Style id="start"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/paddle/grn-circle.png</href></Icon><hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Style id="end"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/paddle/red-circle.png</href></Icon><hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Style id="statistics"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href></Icon><hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Style id="waypoint"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/pushpin/blue-pushpin.png</href></Icon><hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Schema id="schema"><gx:SimpleArrayField name="power" type="int"><displayName>Power (W)</displayName></gx:SimpleArrayField><gx:SimpleArrayField name="cadence" type="int"><displayName>Cadence (rpm)</displayName></gx:SimpleArrayField><gx:SimpleArrayField name="heart_rate" type="int"><displayName>Heart rate (bpm)</displayName></gx:SimpleArrayField></Schema>
<Placemark><name>2016-02-20 08:57 (Start)</name><description></description><TimeStamp><when>2016-02-20T07:57:36.529Z</when></TimeStamp><styleUrl>#start</styleUrl><Point><coordinates>15.130012,50.800432,825.6527709960938</coordinates></Point></Placemark>
<Placemark id="tour">
<name>2016-02-20 08:57</name>
<description>Jizerky</description>
<styleUrl>#track</styleUrl>
<ExtendedData><Data name="type"><value>cross-country skiing</value></Data></ExtendedData>
<gx:MultiTrack>
<altitudeMode>absolute</altitudeMode>
<gx:interpolate>1</gx:interpolate>
<gx:Track><when>2016-02-20T07:57:36.529Z</when><gx:coord>15.130012 50.800432 825.6527709960938</gx:coord>...

The description should be "Jizerky"



I do not know what is the correct format for GPX and KML, if it is wrong, it is just a bug in MyTracks...

orux

#1
Quote from: "drfie"Hi,

when importing a GPX file created by Google MyTracks, it is imported well, but the activity type is not imported. The GPX file looks like this:
<gpx version="1.1" creator="Created by Google My Tracks on Android" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.topografix.com/GPX/Private/TopoGrafix/0/1 http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topografix.xsd">
<metadata><name>2016-02-20 08:57</name><desc>Jizerky</desc></metadata>
<trk>
<name>2016-02-20 08:57</name>
<desc>Jizerky</desc>
<type>cross-country skiing</type>
<extensions><topografix:color>c0c0c0</topografix:color></extensions>
<trkseg><trkpt lat="50.800432" lon="15.130012"><ele>825.7</ele><time>2016-02-20T07:57:36.529Z</time></trkpt>...

It should be "cross-country skiing".



on the other hand, when importing KMZ, description is not imported. KML looks like this:
<kml><Document>
<open>1</open>
<visibility>1</visibility>
<name>2016-02-20 08:57</name>
<atom:author><atom:name>Created by Google My Tracks on Android</atom:name></atom:author>
<Style id="track"><LineStyle><color>7f0000ff</color><width>4</width></LineStyle><IconStyle><scale>1.3</scale><Icon><href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href></Icon></IconStyle></Style>
<Style id="start"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/paddle/grn-circle.png</href></Icon><hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Style id="end"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/paddle/red-circle.png</href></Icon><hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Style id="statistics"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href></Icon><hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Style id="waypoint"><IconStyle><scale>1.3</scale><Icon><href>http://maps.google.com/mapfiles/kml/pushpin/blue-pushpin.png</href></Icon><hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/></IconStyle></Style>
<Schema id="schema"><gx:SimpleArrayField name="power" type="int"><displayName>Power (W)</displayName></gx:SimpleArrayField><gx:SimpleArrayField name="cadence" type="int"><displayName>Cadence (rpm)</displayName></gx:SimpleArrayField><gx:SimpleArrayField name="heart_rate" type="int"><displayName>Heart rate (bpm)</displayName></gx:SimpleArrayField></Schema>
<Placemark><name>2016-02-20 08:57 (Start)</name><description></description><TimeStamp><when>2016-02-20T07:57:36.529Z</when></TimeStamp><styleUrl>#start</styleUrl><Point><coordinates>15.130012,50.800432,825.6527709960938</coordinates></Point></Placemark>
<Placemark id="tour">
<name>2016-02-20 08:57</name>
<description>Jizerky</description>
<styleUrl>#track</styleUrl>
<ExtendedData><Data name="type"><value>cross-country skiing</value></Data></ExtendedData>
<gx:MultiTrack>
<altitudeMode>absolute</altitudeMode>
<gx:interpolate>1</gx:interpolate>
<gx:Track><when>2016-02-20T07:57:36.529Z</when><gx:coord>15.130012 50.800432 825.6527709960938</gx:coord>...

The description should be "Jizerky"



I do not know what is the correct format for GPX and KML, if it is wrong, it is just a bug in MyTracks...




Hello;



Each app uses its own list of types of tracks, there isn't an universal list of types. I think that mytracks list and oruxmaps list doesn't match.



About the description in the kml file; there are a lot of places where a description of a route can be located. OruxMaps searches in a different 'description' tag; but I will take a look to the one you attach.







orux

drfie

#2
"cross-country skiing" could be ok (both for MyTracks and Oruxmaps), it is read correctly when importing from kml.



Thanks.