[GraphHopper] Problem tracing foot route

Peter K peathal at yahoo.de
Wed Dec 4 20:17:25 UTC 2013


Hi Sebastian,

try setting the vehicle via ghRequest.setVehicle

CC: mailing list -> please use it so other can benefit.

Regards,
Peter.

>
> Hi Peter,
>
> I write to you because I'm having trouble while tracing foot route.
>
> I did what you said at
> http://graphhopper.1087335.n5.nabble.com/Problem-with-the-type-of-te-path-Car-pedestrians-bike-td486.html
> modifying the config.properties
>
> "osmreader.acceptWay=FOOT"
>
> And importing again
>
> But the apps shows a message like this:
>
> java.lang.IllegalArgumentException: Vehicle CAR unsupported. Suported
> are: foot.
>
> So I wrote this line in MainActivity.java from android example:
>
> tmpHopp.setEncodingManager(new EncodingManager("FOOT"));
>
> But the message is still showing and route is not traced.
>
> It seems like the app is querying for an CAR route but I can't find where.
>
> Maybe you have the working source code. Any help is well received.
>
> Regards
> Sebastian.
>
> _____________________________________
> Sent from http://graphhopper.1087335.n5.nabble.com
>
>





More information about the GraphHopper mailing list