Optional Via Points

I’m searching for a feature that allows me to specify via points where a route might go along, but if it’s “too much efford” it is ignored.

Using heading we can give a heading penalty to specify when a specified heading is ignored. Is this also possible for via points?

If not, do you think this is a feature worth to have within graphhopper?

Cheers, Lukas!

Did you have a look into map matching already?

Using heading we can give a heading penalty to specify when a specified heading is ignored. Is this also possible for via points?

Yes, you can specify a heading per point but not a heading penalty per point.

I think map-matching doesn’t help me here.

I made a quick sketch:

I want to specify a via point, and if its faster than the penalty (e.g. 2 minutes) to pass the via point we’ll route over the via point (green) and if not we’ll ignore the via point (black).

optional_via_point

now as I draw it it might be enough to just calculate the two routes and substract the duration xD

Or have you any ideas on how to make it more performant?

Yeah if it is just a single via point then this solution is the best. Or what is the use case here?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.