And here's what I noticed when I was making the tool: all the raw route files downloaded from the watch have one blank line at the end. If such a file gets into
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I made a converter that solves my problem at this moment.
Demo: https://zloid.github.io/convert-gps-recorder-raw-data-to-gpx/
Source: https://github.com/zloid/convert-gps-recorder-raw-data-to-gpx
Also, this tool will be useful for those who will have a similar problem and want to convert the routes files to GPX in an easy way.
This converter uses some of the code from https://github.com/espruino/BangleApps/blob/master/apps/gpsrec/interface.html
And here's what I noticed when I was making the tool: all the raw route files downloaded from the watch have one blank line at the end. If such a file gets into
, then the output will be
Perhaps this is causing the error? When files with routes may contain empty lines.