routetools-cli
is tool for route files, it enables us to convert, add POI, remove POI.
We use it via routetools
or routetools-cli
in terminal.
This project is under development and I'm testing on Pioneer SGX-CA600 only.
I would like to test it on other hardware such as Garmin, Wahoo, Bryton, etc.
I would be grateful if you could help me with the test.
Thank you.
git clone https://github.com/ysait0/routetools-cli.git
pip install ./routetools-cli
or
pip install git+https://github.com/ysait0/routetools-cli.git
Options | Description |
---|---|
-r , --remove-original-poi |
Remove original POI from base route. Default is False. |
-p , --poi |
POI source filepath to import. |
-t , --out-type |
Output type. Default is TCX. |
--tolerance |
Tolerance to add POI. Default is 100 m. |
--indent |
Number of spaces for indentation. Default is 2. |
-o , --output |
Output route filepath. |
--output-poi |
Output POI in csv format. |
Convert file formats to each other using routetools-cli
.
Available Input Types:
- GPX
- KML
- KMZ
- TCX
Available Output Types:
- GPX
- TCX
### GPX -> TCX
routetools route.gpx -o route_new.tcx
### TCX -> GPX -- Remove POI
routetools route.tcx -r -t GPX -o route_new.gpx
### KML -> GPX
routetools route.kml -t GPX -o route_new.gpx
Import POI from other route file and Add them into base route file.
### Add POI imported from route_ref.gpx to route_base.tcx
routetools route_base.tcx -p route_ref.gpx -o route_new.tcx
### Remove original POI in base route file and Add POI imported from route_ref.kml
outetools route_base.gpx -r -p route_ref.kml -t GPX -o route_new.gpx
Import POI from csv file and Add them into base route file.
### TCX -> TCX -- Add POI imported from csv file
routetools route_base.tcx -p poi.csv -o route_new.tcx
### GPX -> TCX -- Remove original POI and ADD POI imported from csv file
routetools route_base.gpx -r -p poi.csv -o route_new.tcx
The easiest way to add POI is using Google My Maps.
Please follow the steps below.
Google My Maps doesn't support TCX and GPX includes POI.
Please convert and remove POI first when you only have TCX or GPX file includes POI.
### TCX -> GPX -- Remove original POI
routetools route_base.tcx -r -t GPX -o route_new.gpx
### GPX -> GPX -- Remove original POI
routetools route_base.gpx -r -t GPX -o route_new.gpx
### KML -> TCX
routetools route_base.kml -o route_new.tcx --tolerance 150
### KMZ -> GPX
routetools route_base.kmz -t GPX -o route_new.gpx
(Latitude),(Longitude),(Name of POI),(Description),(Type)
keys | value |
---|---|
Latitude | required |
Longitude | required |
Name of POI | required |
Description | required |
Type | optional |
35.68249921156559,139.77653207620816,PC1,セブンイレブン日本橋1丁目昭和通り店
35.54219882219259,139.76194900229007,通過チェック1,多摩川スカイブリッジ,Generic
This repository is released under the MIT License, see LICENSE.