Route planner: Respect tunnels and brides for elevation sums

Sonny shared this problem 36 days ago
In Progress

A quite tough problem when calculating elevation sums or charts of routes/tracks is if the route crosses bridges or crosses tunnels. In these sectors usually the (wrong) elevations of the terrain surfaces below the bridge (=river) or above the tunnel (=mountain) is taken into account - which can dramatically differ from the correct elevation of the street on the bridge or in the tunnel.

Thankfully the router "BRouter" (maybe also LoRouter in Locus 4 ?) is able to respect those 2 structures and calculates a linear elevation line from the beginning to the end of the tunnel/bridge - and not the elevation of the river below or mountain above.

But I noticed that these feature not always works: For example take the roads within tunnels on the westside of Lake Traunsee (N 47.8314°, E 13°.787902). There are 2 roads within tunnels, the Eastern one along the lakeside for hikers and bikes, the Western one for cars. Crossing the tunnels should result in elevation differences of about 0m. But if using BRoute Route planer, both roads take the elevation of the mountain above into account by mistake.

Another one is the crossing of river "Donau" in Linz (N48.3076°, E14.2853°). Should also be ca. 0m difference. This is true if I route via the eastern bicycle way. But not if I route over the main road for cars, where we can see a drop down to the elevation of river danube in the chart.

Do you have an idea how to solve this problem that Brouter's algorithm regarding bridges and tunnels just sometimes seem to work?

Btw: For testing I advice to use 1"-elevation files of https://sonny.4lima.de because they reduce errors because of rough 3"-resolutions of or wrong elevations of the SRTM files.

Replies (7)

photo
1

Hi, any idea on this topic?

photo
1

Hello all,

I tried to reproduce described behavior using Locus Web planner, which in terms of routing is closely related to Brouter. This is what I get for mentioned Traunsee tunels. I can't seem to reproduce the mentioned "follows terain, not tunnel" inconsistency. Could you please show us this error, possibly using shared link from Locus web planner?

Route through tunnels

photo
1

In Web Planer it seems to work correct within this tunnel, cause the tunnel portals are connected with a linear elevation line.

But let's focus on Route planer of Locus Map Classic v3.67.0 which I'm using. I'm attaching a screenshot of a route for cars using Profile: "Fast" of BRouter. The elevation difference through this tunnel should be nearly 0 m (both portals are at an altitude of about 430 m). But Web planer calculates differences of 70 m up, -72 m down. And the diagram shows a maximum altitude of more than 500 m - which is by mistake the altitude of the mountain surface above the tunnel.

2eb2e085806a74b83b1da1fad06b8f95

photo
1

Any ideas here? Or should it be better dicussed within BRouter's Github site?

photo
1

Hello,

we have checked it and in LoRouter (online and offline) it should be correct.

That means in LM4 and web planner the results should be identical.

But in LM3 external BRouter is used and even if we'll find a bug, we can't do anything with it.

So I am sorry, we can't do more here.


Zdenek, Locus team

photo
1

Thanks, then I'll ask the Brouter-team for help. Maybe they are able to identify the problem.

photo
1

Excuse me for reopening this issue. There's a discussion within BRouter's site regarding this problem:
https://github.com/abrensch/brouter/issues/560
People concluded that the problem just occurs if Locus Map 3 Classic is using it's own SRTM-elevation files in this region. If there are no elevation files installed, than Locus is treating tunnels/bridges correct (by using BRouters internal but quite unaccurate elevation data).

So Locus seems to insert its own elevation data into each OSM point of the created route afterwards - without respecting if points are within a tunnel or bridge. The question is: Is Locus able to get the information of BRouter what sections of a route are a tunnel/bridge and in this case refrain from inserting elevation data?

Leave a Comment
 
Attach a file