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

Bad route calculated - Bug in NetworkSimplification and Solution - set the NetworkSimplificationEpsilon value to 0 #367

Open
JuergenAuer opened this issue Nov 10, 2023 · 0 comments

Comments

@JuergenAuer
Copy link

Calculating a route I saw a terrible route.

2023-11-10 Routing-Bug-Itinero-Lastrup

Start (green): 52.804074329307014,7.860560745843029

Destination (red): 52.79903996107103,7.846146697991908

Germany, Niedersachsen, near Lastrup. Standard-Car-Profile without any modification. Germany-latest or Niedersachsen-latest.

Other routers are ok.

A lot of search, now a solution.

The NetworkSimplificationEpsilon has a standard value of 1.0.

Removing this (= 0.0), the error is gone.

_loadSettings = New Itinero.IO.OSM.LoadSettings()
_loadSettings.NetworkSimplificationEpsilon = 0.0
_routerDb.LoadOsmData(_fS, _loadSettings, Vehicle.Car)

NetworkSimplificationEpsilon
Gets or sets the network simplification epsilon (in meter). When zero no network simplification is done.

Looks like this network simplification has some bad effects.

@JuergenAuer JuergenAuer changed the title Bug in NetworkSimplification and Solution - set the NetworkSimplificationEpsilon value to 0 Bad route calculated - Bug in NetworkSimplification and Solution - set the NetworkSimplificationEpsilon value to 0 Nov 10, 2023
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

1 participant