How can I set the route profile 'foot'? Using the default profile 'car' I can't calculate the distance between any location (in the woods) and a nearby footpath.
The error message I get is:
> Encoding does not match: Graphhopper config:
> foot|speed_factor=1.0|speed_bits=4|turn_costs=false|version=5 Graph:
> car|speed_factor=5.0|speed_bits=5|turn_costs=false|version=2 Change
> configuration to match the graph or delete ...
> gelederland-latest.osm-gh/
My code is:
graphHopper = new GraphHopper().forMobile();
EncodingManager encodingManager = EncodingManager.create( FlagEncoderFactory.FOOT);
graphHopper.setEncodingManager(encodingManager);
graphHopper.setProfiles(Arrays.asList( new ProfileConfig("my_foot").setVehicle("foot").setWeighting("fastest")));
graphHopper.load(getRoutingDataFolder());
The routing data I use? First I retrieved the raw OSM file via http://download.geofabrik.de/europe/netherlands/gelderland.html. Afterwards I prepared the Graphhopper routing data via the command:
./graphhopper.sh -a import -i gelderland-latest.osm.pbf
UPDATE: does this suffice? I am trying:
./graphhopper.sh -a import -p foot,bike,car -i netherlands-latest.osm.pbf