Skip to content

higher default precision for way geometry - #2950

Merged
karussell merged 3 commits into
masterfrom
geo_precision
Apr 18, 2024
Merged

karussell merged 3 commits into
masterfrom
geo_precision

Conversation

@karussell

@karussell karussell commented Mar 14, 2024 •

Copy link
Copy Markdown
Member

I noticed a difference between our routes and the map tiles on several occasions especially for certain curves which could also result in unexpected instructions. Decreasing the default maxWayPointDistance fixes this.

I'm unsure but is a change to the visited_nodes expected?

@easbar

easbar commented Mar 14, 2024 •

Copy link
Copy Markdown
Member

Did you notice a difference between our routes and the rendered OSM tiles, or between the routes and our /mvt layer?

I'm unsure but is a change to the visited_nodes expected?

Not really?! Du you mean the change in GraphHopperTest? Yes, probably because the edge 'distances' slightly changed due to the change of the geometry.

@karussell

karussell commented Mar 14, 2024 •

Copy link
Copy Markdown
Member Author

Not really?! Du you mean the change in GraphHopperTest?

Yes, but as it affects the distance it will affect the weight and also the visited nodes ...

Did you notice a difference between our routes and the rendered OSM tiles

Yes, this. Additionally to the visually difference this also means that the intended (mapped) "curviness" might not be available in GraphHopper, i.e. unnecessary instructions might appear (or disappear).

@karussell

karussell commented Apr 16, 2024 •

Copy link
Copy Markdown
Member Author

The issue has improved due to the rounding and higher multiplier, but is still clearly visible and now the only underlying cause is the simplificiation. E.g. for this route a few points are left out:

image

Update: with this PR the route would look like this:

image

@karussell karussell reopened this Apr 16, 2024
@karussell
karussell merged commit 307db95 into master Apr 18, 2024
@karussell
karussell deleted the geo_precision branch April 18, 2024 15:32
@karussell karussell added this to the 9.0 milestone Apr 20, 2024

This branch was previously deployed

1 inactive deployment
benchmarks — 238c6da2 Deployed Apr 16, 2024 by karussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants