mhaulo / jekyll-gpx-converter

GPX converter for Jekyll
MIT License
0 stars 0 forks source link

Description and name attribute from gpx file #1

Open reithose opened 2 years ago

reithose commented 2 years ago

I have a question. Is it possible to get the name and description attributes (https://www.topografix.com/gpx_manual.asp#desc) from the gpx file? If that's possible, the attributes can be used as Liquid variables in the template.

mhaulo commented 2 years ago

Most gpx files probably have only one trk element, so one option would be to parse title and description in convert method and include them in the properties object of a feature object.

After that, two new methods could be added to GeojsonFilter to read title and description from geojson data the same way zoom and center are read now.