heremaps / here-cli

A command-line interface to work with HERE XYZ Hub and other HERE APIs
https://www.here.xyz/
MIT License
38 stars 19 forks source link

import gpx files #139

Closed burritojustice closed 4 years ago

burritojustice commented 5 years ago

GPX is a popular format for recording running and biking data.

A well thought out library for converting GPX to GeoJSON (made by the Studio team) is here.

https://github.com/roberto-butti/fit-geojson-vuejs

The resulting output would look like this:

https://xyz-space-invader.netlify.com/?space=m5pmsnx1&token=AFbjoHrBlTB2K5_gqvcP_S8&basemap=xyz-pixel-dark&buildings=0&label=&colors=range&points=0&lines=0&outlines=0&highlight=0&places=0&roads=1&water=0&property=ele&palette=temperature&paletteFlip=true&rangeFilter=4&sort=values&hideOutliers=false#12.719989900291463/37.7560/-122.4353

image

roberto-butti commented 4 years ago
Screenshot 2019-12-09 at 22 36 36

Work in progress :rocket:

burritojustice commented 4 years ago

Grazie, @roberto-butti !

burritojustice commented 4 years ago

Glad you figured out transform / tf. We'll just need to map it to the extension detection we use for .csv and .geojson so we can autodetect it in upload

here xyz upload -f my.gpx

https://github.com/heremaps/here-cli/blob/master/src/here-xyz.ts#L1375

Let me know if you have any questions!

cc @Naitik333

roberto-butti commented 4 years ago

Thank you for the suggestion @burritojustice . In my "spare time", at the moment I'm focused on trasform just to understand the logic under the hood and how is structured the code. Once I will have a consolidated geojson from transform I can shift my focus on detection and upload.

roberto-butti commented 4 years ago

"Here" the Pull Request: https://github.com/heremaps/here-cli/pull/179 #179

burritojustice commented 4 years ago

this is looking good in the latest build!