Comments (8)
Something is off in your description. Your screenshots show foot routes and your /api queries have profile=car.
As you are using 9.0-SNAPSHOT can you try this on GraphHopper Maps (and provide a link) and see if the same problems occur there?
from graphhopper.
Here is the link to GraphHopper Maps. There is an instruction to "Turn right onto Mavis road" even though you're already on Mavis road. It looks like it's because of what's seemingly a kink in the road on the map, but in reality it's just a straight road.
Here is another instance where the instruction says to "Turn right onto Dundas Street West" even though you're already on the said road and it's a straight road.
from graphhopper.
Hm, it looks like these cases happen also relative frequently in the US and other OSM routing engines can handle them without creating a separate turn instruction (at least in your highlighted case). So we should find a way to fix this.
from graphhopper.
Shouldn't this snippet cover the case?
Edit:
outgoingEdges.outgoingEdgesAreSlowerByFactor(2)
is most likely the culprit here
from graphhopper.
Are there valid cases where InstructionsHelper.isNameSimilar(name, prevName)
is not enough?
from graphhopper.
Thank you for looking into this. Here is maybe a better example.
GraphHopper lists 3 unnecessary instructions:
- Continue onto Bayview Avenue
- Turn right onto Bayview Avenue
- Turn slight right onto Bayview Avenue
- Turn slight right onto Bayview Avenue
- Arrive at destination
whereas Valhalla lists only two, which seems more intuitive for turn-by-turn:
- Drive north on Bayview Avenue
- Your destination is on the left
from graphhopper.
Thanks a lot for these examples. All those have the "split way" tagging in common associated with a lane count change (often doubling), which makes a good heuristic when to ignore these instructions. If you have time can you review my changes for your example area e.g. locally? (you'll need to add the lanes
encoded value in the config graph.encoded_values: lanes
)
At least all your linked examples should be fixed with this.
from graphhopper.
Works great! Thank you very much.
from graphhopper.
Related Issues (20)
- Isochrone: No buckets when using public transport
- I just finished translating all zh_CN & zh_HK HOT 1
- Default bicycle profile ignoring turn restrictions? HOT 2
- Tags vehicle=no + bicycle:conditional=yes@… should trigger warning instead of failing to route in cycle profiles HOT 3
- Bike priority determination problem for tag combination of `cycleway:left` and `cycleway:right`
- GHUtility's method not found
- LMApproximator overhead HOT 3
- Benchmark stops with PointOutOfBoundsException HOT 5
- make `edges` byte-based
- highway=cycleway + access=no + bicycle=NULL is used for routing HOT 8
- should locked=yes have lower priority? HOT 11
- Default MaxWeight resolution is insufficient for truck routing HOT 11
- bad u-turn on road with turn restriction HOT 4
- correctness vs. speed: astarbi.epsilon
- Snapping to turn restriction via-edges yields bad routes HOT 2
- bike should better avoid primary roads HOT 1
- bike should preffer more footways with bicycle=yes HOT 6
- Allow to route through highway=construction HOT 8
- curve di livello sparite dalle piantine altimetriche, così pure la nomenclatura dei luoghi HOT 1
- Improve map matching - eliminate dead-end edges and unnecessary backtracking HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphhopper.