I’ve been experimenting with GraphHopper open source routing engine for my thesis 6 months ago. I used the /change endpoint a lot, which has been removed in the latest update. Now, after 6 months, I retuned to my old thesis project to experiment some more with it. I found out that there is a new endpoint, the /route-custom endpoint. I read the documentation about it https://www.graphhopper.com/blog/2020/05/31/examples-for-customizable-routing/ , but I got two questions:
Does the “heading” parameter work when algorithm=round_trip? If I make a POST request to /route-custom with 2 different headings, it gives me the same round trip back. I would really like to know if I am doing something wrong here… because I really need the heading .
I want to use the curvature weighting to give me round trips with curvy roads. But at the same time I want to filter some options out with the /route-custom, for example avoiding toll or ferry depending per request. How can I combine these two functionalities? I have noticed that if I want to use the /route-custom endpoint, weighting must be ‘custom’.
Did you try a few other points? The heading is not strictly enforced so there might be cases where you get the same route even for different values of the heading. Do you have an example where heading works with e.g. fastest weighting but not with custom weighting? And yes heading should affect the result for round trip as well.
There is no support for customized curvature weighting currently, but it should be possible to use the curvature and/or priority encoded values with custom weighting (I never tried though).
Yes I tried with a lot of different points + headings, but still no difference in round trips when using different headings. Before I used the /route endpoint to create the round trips and the heading worked very well with this endpoint. I am experiencing this problem only with the /route-custom endpoint…