You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing abnormal elevation spikes along the Suhua Highway, a cliff road in eastern Taiwan. Not only the elevation is inaccurate, but these spikes also result in artificial increase of the total route length and total up/down.
This section above should be more or less flat, around 200-240m high. The actual elevation can easily be seen by zooming and checking the elevation contour lines of the Cyclosm layer. Elevation of Graphhopper somehow jumps 200m off the ground. In particular, it indicates +300m within 0.5km, which is 60%. The Suhua Highway is a primary road for cars and trucks, it simply cannot be that steep anyway.
For other spikes on the Suhua Highway, you can check this route (I excluded part of the Suhua Highway that is currently closed for repairs).
I am aware of #2028 but I think this issue is more about real errors than elevation "noise".
This happens whenever roads aren't aligned with the elevation data. Either the road geometry or the elevation data is inaccurate. Looking at the contour lines of CycleOSM and the satellite imagery in iD it looks like the the OSM way is aligned (more or less) with the imagery, but the elevation data is unrealistic. The road should be more or less parallel to the contour lines, but they go straight where the road bends, like here:
Maybe we can fix this by probing the elevation in the vicinity of the road.
Hello, I agree with @otbutz the substantial error shown in elevation changes Up/Down root cause may be the large amount of points used to estimate elevation changes. The current density of points used is producing a cumulative error, but this is happening in all Up/Down of all routes, not only in where altitude curves may have been collected by old/erronous maps.
This happens whenever roads aren't aligned with the elevation data
In my experience Up/Down values are always "doubled" or worse for long distance (> 50km) , and please consider that I am stating this based on 60 - 70 routes and real trips in places I know from childhood.
From mathematical perspective, in order to have more precise Up/Down values, the solution is quite simple, reducing of a factor 10 or 100 density of points considered in the Up/Down estimates will certainly solve the "User Experience" problem.
Is there a way to do this with the Custom Model scripting language accessible in the web page?
In the end, everybody would like to see Up/Down estimates in GraphHopper browser experience that are not "double than he real ones", don't you think?
IMO there is no good solution except higher precision elevation data (see e.g. #2823).
From mathematical perspective, in order to have more precise Up/Down values, the solution is quite simple, reducing of a factor 10 or 100 density of points considered in the Up/Down estimates will certainly solve the "User Experience" problem.
I don't think so. This would result in problems where ups and downs are more frequent.
Is there a way to do this with the Custom Model scripting language accessible in the web page?
Not yet, but was thinking about a new "path detail" feature which could use a formula or similar.
Do you mean the elevation data used by Graphhopper is wrong while the one used on Cyclosm’s renderer is better?
Where does your screenshot comes from?
No, it might even be the same data. But looking at the screenshot (which shows the CycleOSM contour lines if I remember correctly) we see that the elevation data shows a massive incline (>30m) along this short section (~100m) of the road. Nobody would build a road like this, but this mismatch leads to these elevation spikes.
Looks like I might have a similar issue (see screenshot below). The selected bicyle way is completely flat, but graphhopper thinks there is an elevation change of around 40m which is nonsense. Unfortunately, therefore (I think) this way is avoided for longer routing ways, which is wrong.
So question - is there a way to change the wrong elevation data somewhere/somehow; where does it come from?
Activity
easbar commentedon Jun 27, 2024
This happens whenever roads aren't aligned with the elevation data. Either the road geometry or the elevation data is inaccurate. Looking at the contour lines of CycleOSM and the satellite imagery in iD it looks like the the OSM way is aligned (more or less) with the imagery, but the elevation data is unrealistic. The road should be more or less parallel to the contour lines, but they go straight where the road bends, like here:
Maybe we can fix this by probing the elevation in the vicinity of the road.
justwalked commentedon Jun 27, 2024
Thanks for looking into this!
Do you mean the elevation data used by Graphhopper is wrong while the one used on Cyclosm’s renderer is better?
Where does your screenshot comes from?
otbutz commentedon Jul 8, 2024
The resolution of the elevation source could be a factor here:
Google Earth
maurossi commentedon Jul 28, 2024
Hello, I agree with @otbutz the substantial error shown in elevation changes Up/Down root cause may be the large amount of points used to estimate elevation changes. The current density of points used is producing a cumulative error, but this is happening in all Up/Down of all routes, not only in where altitude curves may have been collected by old/erronous maps.
In my experience Up/Down values are always "doubled" or worse for long distance (> 50km) , and please consider that I am stating this based on 60 - 70 routes and real trips in places I know from childhood.
From mathematical perspective, in order to have more precise Up/Down values, the solution is quite simple, reducing of a factor 10 or 100 density of points considered in the Up/Down estimates will certainly solve the "User Experience" problem.
Is there a way to do this with the Custom Model scripting language accessible in the web page?
In the end, everybody would like to see Up/Down estimates in GraphHopper browser experience that are not "double than he real ones", don't you think?
karussell commentedon Jul 29, 2024
IMO there is no good solution except higher precision elevation data (see e.g. #2823).
I don't think so. This would result in problems where ups and downs are more frequent.
Not yet, but was thinking about a new "path detail" feature which could use a formula or similar.
easbar commentedon Jul 29, 2024
No, it might even be the same data. But looking at the screenshot (which shows the CycleOSM contour lines if I remember correctly) we see that the elevation data shows a massive incline (>30m) along this short section (~100m) of the road. Nobody would build a road like this, but this mismatch leads to these elevation spikes.
petrarca-arezzo commentedon Mar 16, 2025
Looks like I might have a similar issue (see screenshot below). The selected bicyle way is completely flat, but graphhopper thinks there is an elevation change of around 40m which is nonsense. Unfortunately, therefore (I think) this way is avoided for longer routing ways, which is wrong.
So question - is there a way to change the wrong elevation data somewhere/somehow; where does it come from?
otbutz commentedon Mar 17, 2025
Using Google Maps 3D view:
The satellite is most likely confusing the closed canopy with land mass.
justwalked commentedon May 17, 2025
@karussell Can you elaborate on the closing of this issue?
karussell commentedon May 17, 2025
As the elevation data is the problem here there are other issues that reported this problem already.