jenetics/jpx

How to obtain the speed of an existing file ?

louisJ20 opened this issue · 3 comments

I took the file of a bike trip made two days ago. I would like to read the speed there, however my code does not work (see image).

Could you help me ?

Thank you

Capture d’écran 2020-08-06 à 22 47 26

Your GPX file is still missing. It's not possible to extract it from the screenshot ;-) How do think I should be able to check it?

Your GPX file is still missing. It's not possible to extract it from the screenshot ;-) How do think I should be able to check it?

This is an extract of my GPX file.

Capture d’écran 2020-08-09 à 21 30 25

The speed you want to access, must be available in the <speed> tag:

<trkpt lat="48.19948359" lon="16.40371021">
	<ele>212.0</ele>
	<time>2016-08-21T12:24:31Z</time>
	<speed>0.7424285</speed>
	<geoidheight>43.0</geoidheight>
</trkpt>

But your speed is stored as <extensions>, which you must access with the WayPoint.getExcenstions() method.

PS:
Let me be clear: For the next issue you create, please think about how I could easily reproduce the problem. Reproducibility contains the following information

  • Which version are you using?
  • What is the input value?
  • What is the expected output/behavior?

Easily reproducible means

  • No code screenshots! I will not start typing code from a screenshot.
  • No GPX data screenshots! I will not start typing data from a screenshot.
  • A minimal test case which reproduces the problem, in compilable form.

The less burden you put on my side, the faster you will get an answer. I will not be able to answer questions in such a poor quality in the future. You have to keep in mind that I'm doing this project in my spare time, so I rely on a minimal support from your side.