Open mikerussellnz opened 6 years ago
Ouwch, that looks bad, I'll have a look at this.
I just tried this out, I can't seem to reproduce this, I get identical routes in both cases:
http://geojson.io/#id=gist:xivk/a952bb08244b9dc9254205880b1afbdf&map=8/-44.301/170.650 http://geojson.io/#id=gist:xivk/3a98c9f5e2f97a9ab18b882cf6179176&map=8/-44.301/170.650
Did you use the default profile? Perhaps it only works on the New Zealand file from yesterday? What version did you use to test? The latest prerelease or the stable?
I have just tried with the latest OSM file and the issue does not reproduce. Perhaps that is due to a difference in the ordering of the data in the file. The issue only happens when contraction is enabled so it appears to be something related to the way the nodes are being contracted.
This data file reproduces the issue: https://www.dropbox.com/s/x25mnsahogkop2g/new-zealand-latest.osm.pbf?dl=0
I am using version 1.4.0-pre44.
Ok, thanks, I'll have a look. It's definitely possible that this only happens with a specific file. It's going to take me some to figure this out.
Narrowed this down to an issue with the combination of turn-restrictions and edge-based contraction. The route is fine when using an uncontracted network and a contracted network without turn-restrictions. The route has the issue above when using a contracted network combined with turn-restrictions.
Is there a fix for issues like this? I get issues like this on my routings all the time, especially with the Classifications profile, sometimes it does a turn from highway trunk to residential and then back to the highway trunk for no reason.. :/
Hi
I am having some issues with routing when using a contracted network. When using a contracted network I am seeing issues where the route is very strange. See screenshots below with comparison of route section with contracted and non-contracted network.
The OSM data I am using is: "new-zealand-latest.osm.pbf"
Code:
Contracted:
Non contracted: