elliotstokes / gpx-parse

GPX parser
MIT License
44 stars 40 forks source link

Waypoints not including comments & a few wpt schema elements missing #25

Open thmsdnnr opened 6 years ago

thmsdnnr commented 6 years ago
  1. Previously the Waypoint creation in gpxParse did not pass the XML-extracted parameter for cmt, so any comment in the waypoint XML was not associated with the new GpxWaypoint. gpx-parse.js > L31:
    var point = new GpxWaypoint(wayPoint.$.lat, wayPoint.$.lon, getFloat(wayPoint.ele), wayPoint.time, null, null, getString(wayPoint.name), null, getString(wayPoint.desc));

    gpxWaypoint > L19:

    function GpxWaypoint(lat, lon, elevation, time, magvar, geoidheight, name, cmt, desc, src, links, sym, type) {
  2. There are also a few schema elements in the GPX 1.1 Waypoint schema not yet supported or implemented by the parser: magvar, geoidheight, cmt, src, links, sym, type, fix, hdop, vdop, pdop, ageofdgpsdata, dgpsid.