Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joanbono/ptg
Points to GPX converter
https://github.com/joanbono/ptg
Last synced: 4 days ago
JSON representation
Points to GPX converter
- Host: GitHub
- URL: https://github.com/joanbono/ptg
- Owner: joanbono
- License: apache-2.0
- Created: 2024-01-03T18:17:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T18:19:32.000Z (about 1 year ago)
- Last Synced: 2024-05-02T04:39:40.715Z (9 months ago)
- Language: Python
- Size: 1.26 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ptg
Quick script to convert points into GPX files
For elevation estimate uses `https://api.open-elevation.com`.
Coordinates fomat expected:
```text
1: 38.9136472N, 0.2337444W
2: 38.9131778N, 0.2333139W
3: 38.9125250N, 0.2329222W
4: 38.9117389N, 0.2323667W
5: 38.9115889N, 0.2317444W
6: 38.9113889N, 0.2309167W
7: 38.9112639N, 0.2303056W
8: 38.9111306N, 0.2297472W
9: 38.9111306N, 0.2293389W
10: 38.9112306N, 0.2288250W
11: 38.9113139N, 0.2282667W
12: 38.9113556N, 0.2279444W
```### Usage
```shell
$ pip install requests
$ python ptg.py -f coordinates.txt -t "Ventura a Collao" -l "Ador" > Ventura-a-Collao.gpx
```It's possible to view the resulting GPX file using `https://gpx.studio`:
![](PTG.png)