Skip to content

Throw exception if using heading for CH graph #483

Closed

Description

@karussell

as discussed in #434

Also fastest weighting is necessary for it to work.

Activity

  1. added this to the 0.5 milestone on Jul 30, 2015
  2. devemux86 commented on Jul 30, 2015

    @devemux86
    Contributor

    Also fastest weighting is necessary for it to work.

    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?

  3. karussell commented on Jul 30, 2015

    @karussell
    MemberAuthor

    exception, as API usage is wrong then

    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

  4. devemux86 commented on Jul 30, 2015

    @devemux86
    Contributor

    BTW I checked MapQuest implementation of start heading and it works with both route types (fastest / shortest).

  5. karussell commented on Jul 30, 2015

    @karussell
    MemberAuthor

    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

  6. removed this from the 0.5 milestone on Jul 31, 2015
  7. karussell commented on Jul 31, 2015

    @karussell
    MemberAuthor

    fixed.

    for the shortest handling I've created #485

  8. added this to the 0.5 milestone on Jul 31, 2015
  9. devemux86 commented on Jul 31, 2015

    @devemux86
    Contributor

    Peter may be I'm missing something, but where is the force_heading_ch described ?

  10. karussell commented on Jul 31, 2015

    @karussell
    MemberAuthor

    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

  11. echap commented on May 30, 2017

    @echap

    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 ?

  12. karussell commented on May 30, 2017

    @karussell
    MemberAuthor

    @echap disable CH via appending &ch.disable=true

  13. echap commented on May 30, 2017

    @echap

    @karussell Awesome ;) It's quite unclear on the api doc then, but it works perfectly fine for my use case :)

  14. easbar commented on Jul 1, 2019

    @easbar
    Member

    Added a test to show what the problem of CH with heading is here: e8cdc6f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions