The heading parameter

I am trying to use the heading parameter with no success. In the doc it states:

“heading - Favored heading direction for points. Specify either one heading for the start point or as many as there are points. In this case headings are associated by their order to the specific points. Headings are given as north based clockwise angle between 0 and 360 degree, NaN indicates non specific heading. Does only give valid results in the flexibility mode.”

I am using the “?heading=90…” to get the route but it is blank. Also what is flexibility mode?
Thank

In the config you need to disable the speed mode via

prepare.chWeighting=no
# prepare.chWeighting=fastest

What exactly is the URL and the returned json or error message?

1 Like

What will disabling speed mode do?

I am getting a blank result after adding “&heading=283” to URL. Sorry I can’t get the URL right now but using
points_encoded=false
layer=omniscale
elevation=false
weighting=fastest
hicle=car
2 x points

There are two ‘modes’, disabling speed mode is the same as enabling flexiblity mode.

Although it is possible since 0.5 to run ‘flexible’ queries on a ‘speed mode’ graph, it is currently not easily possible and so you have to disable the speed mode and re-import the graph again

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