It is not obvious how accumulated elevation should be calculated. More measuring points give higher elevation in the same sense as the 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

accept rate: 0%

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?

permanent link
This answer is marked "community wiki".

answered 28 Apr '20, 08:45

escada's gravatar image

accept rate: 20%


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:

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

(28 Apr '20, 08:58) mragel

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 directly.

(28 Apr '20, 09:24) alan_gr

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.

permanent link

answered 28 Apr '20, 17:00

H_mlet's gravatar image

accept rate: 13%

edited 28 Apr '20, 17:01

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 28 Apr '20, 06:28

question was seen: 803 times

last updated: 28 Apr '20, 17:01

powered by OSQA