mapbox / mapbox/togeojson

From GPX store the origin Track|Route|Waypoint

Open
#143 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
322
PR merge metrics
No merged PRs in 30d

Description

It would be a great addition if we could add the origin from where a feature was extracted.

For example if you have GPX file with a track and a route, you will receive two features, but you don't know which feature was the track and which feature was the route.

Waypoints are obviously `type: 'Point'`, so that would be straight forward. But at least for route and track it would be handy if one could determine which is which.

I could provide a PR for this adding a field to the properties like `origin: wpt|rte|trk` (or something along these lines).

Contributor guide

Open the contributing guide

Research direction

Start by tracing the GPX conversion path that creates GeoJSON features for tracks, routes, and waypoints. Confirm how feature properties are assembled, then define completion as each extracted feature identifying its GPX origin with a consistent value such as wpt, rte, or trk.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.