sports-alliance / sports-lib

A Library for processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
GNU Affero General Public License v3.0
148 stars 21 forks source link

Import GPX: timestamp for each data point? #77

Open kissenger opened 3 years ago

kissenger commented 3 years ago

Hi, Thanks for your hard work with this, it looks very good. I'm looking through the imported data from a gpx file though and I can find all the data somewhere except the timestamp for the data point - I can only find the start and end times for an activity. Am I missing something? Sorry if its obvious and I missed it.

jimmykane commented 3 years ago

Hey ,

Replying quickly via email.

Once you parse the gpx you should have an event object. Inside that event there can be one or more activities.

The event has the summary properties for each activity (start time ascent etc) as well as the individual activities.

In case of a multisport for example the event will have as duration the total duration of all the activities.

In a more simple example of one activity the event should have the same stats.

Typically you want to read the event for quick summaries and the activity for more detailed stats.

Keep me posted if you need more help.

On Mon, 15 Mar 2021, 23:33 kissenger, @.***> wrote:

Hi, Thanks for your hard work with this, it looks very good. I'm looking through the imported data from a gpx file though and I can find all the data somewhere except the timestamp for the data point - I can only find the start and end times for an activity. Am I missing something? Sorry if its obvious and I missed it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sports-alliance/sports-lib/issues/77, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVX42NRBGE2I4TVJ2CD6DTDZ4LNANCNFSM4ZHJVYVQ .