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

Uphill Downhill are not accurate #252

Closed
byrod opened this issue Oct 31, 2022 · 2 comments
Closed

Uphill Downhill are not accurate #252

byrod opened this issue Oct 31, 2022 · 2 comments

Comments

@byrod
Copy link

byrod commented Oct 31, 2022

Hello I have an issue with the get_uphill_downhill()

Downhill and uphill are ok if upload my gpx on this website for example (visugpx.c*m)
Uphill / Downhill : ~ +228m -230 m

With gpxinfo they are:
Total uphill: 480.07m
Total downhill: 259.27m

SportsTracker-Walking-20210614-60c7399c5dce230db45a63a4.zip

I didn't find any help by searching by myself, so I post here.
Sorry if this is not an issue.

@byrod byrod changed the title Uphill Downhill data is not true Uphill Downhill are not accurate Oct 31, 2022
@tkrajina
Copy link
Owner

tkrajina commented Nov 1, 2022

The problem is that the first few points in your track have no elevations and gpxpy is treating that as elevation=0.

I changed that now (4ca77c1) and it should be fixed in the new version.

@tkrajina tkrajina closed this as completed Nov 1, 2022
@byrod
Copy link
Author

byrod commented Nov 1, 2022

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants