This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

accumulated elevation

0

It is not obvious how accumulated elevation should be calculated. More measuring points give higher elevation in the same sense as the coastline paradox. https://en.wikipedia.org/wiki/Coastline_paradox To be it seems adequate to make one measurments maybe every 2,5 meters, a normal length of a stride while running...

My question: how is OpenStreetMap calculating accumulated elevation? One measurement every xx meters? I have seen that it differs from Google Maps - why?

asked 28 Apr '20, 06:28

mragel's gravatar image

mragel
11112
accept rate: 0%


2 Answers:

4

OpenStreetMap does not calculate elevation. The only elevation data in OSM is added by users as ele-tag. This is typically done when they see a sign on e.g. the top of a mountain displaying the height.

Why do you think OSM is calculating accumulated elevation? Which map are you consulting that has different results than Google Maps?

This answer is marked "community wiki".

answered 28 Apr '20, 08:45

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

Thanks!

When I let Open Street Map find the way between two locations, I get the distance, and "stigning" and "fall" which (translated from Swedish) is positive and negative elevation. Se the printscreen: www.schackstudion.se/stigning.PNG

It's +18-19 m, and accordning to Google Maps +1-6.

(28 Apr '20, 08:58) mragel
4

The screenshot shows that those results were provided by the GraphHopper routing service. Graphhopper is one of many applications that use OpenStreetMap data but are not directly part of OpenStreetMap. As escada said, there is very little elevation data in OpenStreetMap, certainly not enough for this type of calculation. So GraphHopper must be obtaining elevation data from elsewhere, and using it to carry out this calculation. If you want further details you may need to contact https://www.graphhopper.com/ directly.

(28 Apr '20, 09:24) alan_gr

4

AFAIK most OSM-related software use SRTM DEM to compute elevation, because it's public domain.

I read this (even if I don't fully understand, I guess that's why you have such a difference with GMaps):

vertical LE90 accuracy ranging between 5–9 m and less than 16 m.

Specifically for Graphhopper, they use different models based on the location, if I understand corrrectly this post.

answered 28 Apr '20, 17:00

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

edited 28 Apr '20, 17:01

Source code available on GitHub .