altitude is not parsed

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing how TCX Trackpoint elements are parsed, using the supplied XML example as the reproduction case. Verify that AltitudeMeters is retained in the resulting GeoJSON alongside the other trackpoint data, and add or run the relevant parser test if one exists.

Written by the indexing model from the issue text.

Description

Should parse "AltitudeMeters" (@see example bellow).

<TrainingCenterDatabase xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd">
  <Activities>
    <Activity Sport="Biking">
      <Id>2012-05-28T12:09:36Z</Id>
      <Lap StartTime="2012-05-28T10:22:00Z">
        <TotalTimeSeconds>16310.0</TotalTimeSeconds>
        <DistanceMeters>102970.0</DistanceMeters>
        <Calories>3460</Calories>
        <Intensity>Active</Intensity>
        <TriggerMethod>Manual</TriggerMethod>
        <Track>
          <Trackpoint>
            <Time>2012-05-28T10:22:19Z</Time>
            <Position>
              <LatitudeDegrees>43.604123</LatitudeDegrees>
              <LongitudeDegrees>1.412692</LongitudeDegrees>
            </Position>
          </Trackpoint>
          <Trackpoint>
            <Time>2012-05-28T10:22:31Z</Time>
            <Position>
              <LatitudeDegrees>43.604123</LatitudeDegrees>
              <LongitudeDegrees>1.412692</LongitudeDegrees>
            </Position>
            <AltitudeMeters>193.1</AltitudeMeters>
          </Trackpoint>
Dominant language
JavaScript
Stars
23
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/tcx

All issues in mapbox/tcx

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.