placemark / togeojson

convert KML, TCX, and GPX to GeoJSON, without the fuss
https://placemark.github.io/togeojson/
BSD 2-Clause "Simplified" License
410 stars 67 forks source link

Preserve GPX linestring type #36

Closed jczaplew closed 4 years ago

jczaplew commented 4 years ago

GPX files can encode LineStrings under two different tags, rte and trk, in order to differentiate between routes (a navigation plan) and tracks (a recorded path). Currently when a GPX file is converted to GeoJSON this difference is not preserved - this PR introduces a change that preserves this metadata on a _gpxType property for each feature.