Skip to content

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

@JuergenAuer

Description

@JuergenAuer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions