You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Throw exception if using heading for CH graph #483
Indeed, are there any plans for support with shortest weighting too?
Shortest weighting is ugly not only here, because it is 'shortest' and nothing else. So would you expect a complete blocking if a heading is forced (won't find any route then in some cases) or just a priority, which is not really 'shortest' then
Hmmh, we could interpret the heading penalty as meters and implement it for shortest too, shouldn't be hard. But 'shortest' path is in general not of much use IMO
Activity
devemux86 commentedon Jul 30, 2015
Indeed, are there any plans for support with shortest weighting too?
BTW with shortest now, will we have exception throw or simply calculate the route without heading?
karussell commentedon Jul 30, 2015
exception, as API usage is wrong then
Shortest weighting is ugly not only here, because it is 'shortest' and nothing else. So would you expect a complete blocking if a heading is forced (won't find any route then in some cases) or just a priority, which is not really 'shortest' then
devemux86 commentedon Jul 30, 2015
BTW I checked MapQuest implementation of start heading and it works with both route types (fastest / shortest).
karussell commentedon Jul 30, 2015
Hmmh, we could interpret the heading penalty as meters and implement it for shortest too, shouldn't be hard. But 'shortest' path is in general not of much use IMO
throw exception if ch and trying to use heading, #483
karussell commentedon Jul 31, 2015
fixed.
for the shortest handling I've created #485
added forcing heading usage even with CH, #483
devemux86 commentedon Jul 31, 2015
Peter may be I'm missing something, but where is the
force_heading_chdescribed ?karussell commentedon Jul 31, 2015
at the moment nowhere, as it shouldn't be officially used IMO (due to strange looking behaviour sometimes with CH)
we'll see if people need CH and heading
echap commentedon May 30, 2017
Hey there, I wanted to do a simple redirection with heading parameter :
https://graphhopper.com/api/1/route?point=48.87899%2C2.29881779&point=48.87914251522007%2C2.2989351768493407&heading=25.98&weighting=fastest&locale=fr&key=[my_key]But the api returns a hint that brings me here but... I don't see what I'm doing wrong. Any idea ?
karussell commentedon May 30, 2017
@echap disable CH via appending &ch.disable=true
echap commentedon May 30, 2017
@karussell Awesome ;) It's quite unclear on the api doc then, but it works perfectly fine for my use case :)
easbar commentedon Jul 1, 2019
Added a test to show what the problem of CH with heading is here: e8cdc6f