Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cumulativeElevationLoss is missing in stats #46

Closed
jesuspicornell opened this issue May 16, 2020 · 1 comment
Closed

cumulativeElevationLoss is missing in stats #46

jesuspicornell opened this issue May 16, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@jesuspicornell
Copy link

Problem description

  1. v1,0RC5
  2. PHP 7
  3. cumulative elevation loss is missing in stats.

For example, when I calculate the stats of a GPX file, I get this answer:

[{"description":"Osterrunde um Bergen-Vogtland.gpx","distance":20843.2107222357080900110304355621337890625,"avgSpeed":0.98572762933249979955263597730663605034351348876953125,"avgPace":1014.4790206166434245460550300776958465576171875,"minAltitude":444.1000000000000227373675443232059478759765625,"maxAltitude":601,"cumulativeElevationGain":370.7000000000001591615728102624416351318359375,"startedAt":"2020-04-12T00:41:05+00:00","finishedAt":"2020-04-12T06:33:30+00:00","duration":21145}]'

It is also missing in this document: https://github.com/Sibyx/phpGPX/blob/69846b781000c12c15eea26c2808fe67f0305802/docs/phpGPX-Models-Stats.md

Expected behaviour

[{"description":"Osterrunde um Bergen-Vogtland.gpx","distance":20843.2107222357080900110304355621337890625,"avgSpeed":0.98572762933249979955263597730663605034351348876953125,"avgPace":1014.4790206166434245460550300776958465576171875,"minAltitude":444.1000000000000227373675443232059478759765625,"maxAltitude":601,"cumulativeElevationGain":370.7000000000001591615728102624416351318359375,"cumulativeElevationLoss":370.7000000000001591615728102624416351318359375,"startedAt":"2020-04-12T00:41:05+00:00","finishedAt":"2020-04-12T06:33:30+00:00","duration":21145}]'

Possible solution

A possible solution if you have any.

Something interesting or funny

Joke or interesting fact to made readers better day :) For example: Ants get drunk and act silly, causing their friend-ants to throw them in puddles of water.

Checklist

Put x into brackets if true.

[x ] PHP version I use
[ x] Package version I use

@Sibyx Sibyx self-assigned this May 17, 2020
@Sibyx Sibyx added the bug label May 17, 2020
@Sibyx Sibyx added this to the 1.2 milestone Feb 17, 2021
@lukey78
Copy link
Contributor

lukey78 commented Feb 28, 2021

Actually, this was contributed by me over 2 years ago. Why don't close this one?

@Sibyx Sibyx closed this as completed Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants