GraphHopper.com | Forum | GitHub | Maps | Blog

Choose foot route, when it's faster than public transport route


#1

In a case when a foot route is faster then a route on a public transport how to get the faster one? (foot route)

For example, in this case

What magic parameters need to be added to the query? :slight_smile: Can you tell me, where I can read about the parameters of requests for routing on public transport?


#2

I’m currently reducing them to just the right set of parameters, which will also solve this problem. Give me a bit more time.

Something you could try in the meantime is set the constant separateWalkQuery in GraphHopperGtfs.RequestHandler to false (!) in code.


#4

Now the result is as in the picture:
https://clck.ru/DwxTf
:disappointed_relieved:

Corrected line:
https://clck.ru/DwxWE

What else can I do?


#5

Ah, I think we’re almost there:

There’s a hard maximum allowed walking distance, defaulting to 1km. (A few lines down in the code you were looking at, but this one can be passed in the web request).

Maybe relax that to 2km or something?


#6

(This is one of the parameters that should go away. “Typical walking speed” (which is also a parameter) should be enough to approximate one’s willingness to walk.)


#7

This is now happening. But remember to set the maximum allowed walking distance.


#8

Thank you very much!
Can you help me with other task?


#9

And what about public transport speed?