8000 GitHub - ysait0/routetools-cli: Tools for route files -- Convert, Add POI, Remove POI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ysait0/routetools-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

routetools-cli

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.


⚠️ Information

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.


Install

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

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.

Usage

Convert

Convert file formats to each other using routetools-cli.

Available Input Types:

  • GPX
  • KML
  • KMZ
  • TCX

Available Output Types:

  • GPX
  • TCX

Examples)

### 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

Add POI -- using other route file

Import POI from other route file and Add them into base route file.

Examples)

### 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

Add POI -- using csv file

Import POI from csv file and Add them into base route file.

Examples)

### 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

Add POI -- using Google My Maps

The easiest way to add POI is using Google My Maps.

Please follow the steps below.

1. Import route file to the new layer oo Google My Maps

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

2. Add POI to the layer

3. Export the layer with KML or KMZ

4. Convert the file with routetools-cli

### KML -> TCX
routetools route_base.kml -o route_new.tcx --tolerance 150

### KMZ -> GPX
routetools route_base.kmz -t GPX -o route_new.gpx

File Format

CSV

(Latitude),(Longitude),(Name of POI),(Description),(Type)
keys value
Latitude required
Longitude required
Name of POI required
Description required
Type optional

Examples)

35.68249921156559,139.77653207620816,PC1,セブンイレブン日本橋1丁目昭和通り店
35.54219882219259,139.76194900229007,通過チェック1,多摩川スカイブリッジ,Generic

License

This repository is released under the MIT License, see LICENSE.

About

Tools for route files -- Convert, Add POI, Remove POI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0