Comments (4)
OK, I have looked into this and the returning errors is indeed a bug which should be fixed shortly. However, the continue_straight
option is not intended to tell the engine that it cannot backtrack on itself, more that it should try not to. As such, if a via point does invoke a u-turn, the engine will try and find an alternative that wouldn't back track. In the second example provided however, because the alternative would create a massive detour, the engine will still do the back tracking (in the second example, there is actually no way based on the data to get between the 3rd and 4th points without backtracking).
So in summary, the continue_straight
option does not rule out u-turns, it just gives a much higher weighting to those route segments. If however the alternative route segment is much longer (for example) then it could easily have an even higher weighting and so the engine will pick the first option which has a u-turn in it.
from openrouteservice.
A bit clarification perhaps. I tried to use it with foot_hiking and always got an 500 error as result.
Expected behaviour would be that a 500 is returned only if the resulting route has a uturn at a waypoint, resulting in backtracking parts of the way.
Currently with missing intersections between footpaths you can get hiking routes with uturns and factor 2-5 times the direct of a direct route between the waypoints.
from openrouteservice.
@realthargor we are looking into this.
from openrouteservice.
👍
from openrouteservice.
Related Issues (20)
- Migration info printed even if using yaml HOT 1
- Application startup fails org.yaml.snakeyaml.error.YAMLException: java.io.IOException: Is a directory HOT 2
- Not ready after ten a week of creating graph HOT 7
- Review configuration
- Improve track grade parsing
- Cannot find routable point HOT 1
- Extra Info - Surface returns paved instead of grass HOT 3
- Consider side of road for departure and destination points HOT 1
- Support bicycle=destination for bike profiles HOT 3
- Matrix endpoint returning null for all locations when one route does not exist HOT 4
- Confusing error message in isochrones api
- fix: Fix some CVEs
- Dead link in docs
- Example mentions non-existent way category "Tunnel"
- Unify snapping behaviour across services HOT 1
- Wrong caculation bus
- Ways tagged as `highway=construction` not considered for bike profiles HOT 1
- Driving speeds too fast on single lane roads (highway = primary, lanes = 1). ORS says 12 mins; Google/TomTom/HERE say 20 mins HOT 1
- Missing danish translation
- CVE-2024-36114
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 openrouteservice.