GraphHopper.com | Forum | GitHub | Maps | Blog

Walk-only road


#1

Hi I am using

com.graphhopper
graphhopper-reader-osm
0.8.0

I want walk-only route. No vehicle boarding at all. No ferry no bus, no auto etc.
How can I get that?


#2

You should use the latest 0.10.x versions. Then you can use the FootFlagEncoder and overload isFerry and return false to avoid ferry routes.


#3

@karussell can you please provide me the link to document?


#4

Documentation: https://github.com/graphhopper/graphhopper#get-started
FootFlagEncoder: https://github.com/graphhopper/graphhopper/blob/183562294496c970086e6355c36cbc2211cd28d2/core/src/main/java/com/graphhopper/routing/util/FootFlagEncoder.java#L287