Kaynağa Gözat

Merge branch 'master' of https://floriananaya.pro/git/florian/PhoneTrackGPXFix

Florian 1 yıl önce
ebeveyn
işleme
5634f4ae6f
1 değiştirilmiş dosya ile 58 ekleme ve 0 silme
  1. 58 0
      README.md.bak

+ 58 - 0
README.md.bak

@@ -0,0 +1,58 @@
+# PhoneTrackGPXFix
+
+A nodejs app that puts in time order gps points exported from PhoneTrack in NextCloud so that they can be correctly imported in JOSM.
+
+Disclaimer: This project has been done in an hour or so. So please expect bugs, dirty code and odd behaviour that look more like a one-hour side-project. Also this has only been tested on Windows.
+
+## How to install
+
+Download [nodejs]([Download | Node.js](https://nodejs.org/en/download)) and [git]([Git - Downloads](https://git-scm.com/downloads)).
+
+Open your favorite shell and execute (windows or linux):
+
+```bash
+git clone https://floriananaya.pro/git/florian/PhoneTrackGPXFix
+cd PhoneTrackGPXFix
+npm install
+```
+
+## How to use
+
+The only command is
+
+```bash
+node main.js <FilePath>
+```
+
+## Example
+
+```bash
+node main.js C:\Users\Florian\Downloads\florian1.gpx
+```
+
+Expected output:
+
+```Bash
+C:\Users\Florian\Downloads\PhoneTrackGPXFix>node main.js C:\Users\Florian\Downloads\florian1.gpx
+Started PhoneTrack GPX file fixer
+Reading file located at "C:\Users\Florian\Downloads\florian1.gpx"...
+File has been read, loading XML...
+XML has been loaded, reading PhoneTrack data...
+Loading track "ONEPLUSA5000" with 157457 points
+Done loading track "ONEPLUSA5000"
+Loading track "OPPO" with 27814 points
+Done loading track "OPPO"
+Sorting all points...
+Sorting points...
+Done reading and sorting track "ONEPLUSA5000"
+Sorting points...
+Done reading and sorting track "OPPO"
+Done sorting all points
+Updating XML...
+Done updating XML
+Writing to new file "C:\Users\Florian\Downloads\florian1.gpx2"
+Data written to file
+Done in 6.121 sec
+```
+
+The given file stays untouched, a new file will be created that has the same name as the given file with a "2" added at the end of the file (example: "export.gpx" will be renamed to "export.gpx2")