I'm trying to get a route that avoids a specific section of a road using Here routing API. I tried passing in a rectangle area to avoid the road like avoid[areas]=bbox:13.082,52.416,13.628,52.62. The problem is that the road I'm trying to avoid is diagonal. Using a rectangle to define the coordinates of the beginning and end of the diagonal road ends up causing nearby roads to be avoided. What would help me is if I could avoid an area in the shape of a polygon. Is there a better way to get directions that avoid a road?
How can the HERE Routing API be used to avoid a specific section of road?
431 Views Asked by shalometz At
1
There are 1 best solutions below
Related Questions in HERE-API
- Error in if (!is.na(hroute$duration_base)) { : argument is of length zero
- Signature mismatch. Authorization signature or client credential is wrong with Android
- Is the Barometric Pressure from the Here Destination Weather API MSLP corrected?
- Road info like curvature, speed limit, slope in HERE SDK for Flutter
- Curvature and traffic light data from a polyline in heremaps
- Here API sdk for flutter
- Here Maps It looks white in React
- Here Maps - route overlaps clusters
- Converting Here API WKTShapeType Multipolygon To GeoJSON?
- Missing address fileds in Here-API auto suggest end-point
- HERE Routing API V8: ignore route restrictions near place or waypoint
- Extracting latitude and longitude from HERE map linkid
- HERE maps - Move map position
- HERE Maps CSP error on Safari browser: blobs can't be loaded
- Geocode Shape not working on H.service.Platform#getSearchService
Related Questions in HERE-ROUTING
- Problem of 1 NA result using here.com with Rstudio for routing in Canada
- HERE Routing API v8: How to add waypoint labels?
- HERE Maps Route Matching v8 Can't Set Preferred Route
- Why is Here Routing API v8's response Polyline size 4 times larger than API v7's (deprecated)?
- Bug: Here routing isolines API returning same polygon for all distances
- HERE-Routing API - "These credentials do not authorize access"
- Turn-by-turn latitude and longitude on HERE Routing API
- Retrieve travel times from HERE without reoptimizing waypoint order
- How to request for new traffic information using Route Handle (Here Routing API V8)
- what is local time for the here api routing calculations
- Getting speed limit Advanced Datasets API(aka PDE) is not working well
- Vehicle's height or width does not work in here/com rest api v8
- Here API getting speed limit got PermissionError
- How can I find the middle of a HERE Routing API route?
- HERE Maps Routing: HTTP 429 Too many requests error
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use the avoid[segments] parameter to indicate that you want to avoid a specific section of the road. Here's an example request including this parameter:
The easiest way to find out what's the Segment ID for the section of the road you want to avoid is by calculating a route where both the origin and destination are set to the coordinates of that section, and request the segmentId attribute in the spans parameter: