I would like to read the data from a GPX file.
I managed to read the Track Name, Track Description and GPX Creation Time.
But I would like to read the first GPX Point latitude (trkpt lat) and the first longitude (lon)
Can someone help me with this?
Thanks
Local $oXML = ObjCreate("Microsoft.XMLDOM")
$oXML.load("Test01.GPX")
$oShortcutInit = $oXML.SelectSingleNode("//gpx/trk/name")
$GPXTrackName = $oShortcutInit.text
MsgBox (0, "GPXTrackName", $GPXTrackName)
$oShortcutInit = $oXML.SelectSingleNode("//gpx/trk/desc")
$GPXTrackDesc = $oShortcutInit.text
MsgBox (0, "$GPXTrackDesc", $GPXTrackDesc)
$oShortcutInit = $oXML.SelectSingleNode("//gpx/metadata/time")
$GPXTrackTimeCreation = $oShortcutInit.text
MsgBox (0, "$GPXTrackTimeCreation", $GPXTrackTimeCreation)
$oShortcutInit = $oXML.SelectSingleNode("//gpx/trk")
$GPXTrackLatitude = $oShortcutInit.text
MsgBox (0, "$GPXTrackLatitude", $GPXTrackLatitude)
Test01.gpx