[GraphHopper] [Graphhopper]itinerary
Fred Laurent
fredlaurent31 at gmail.com
Mon Jun 29 09:40:00 UTC 2015
Sorry,
This is my code ...
GraphHopper Hopp = new GraphHopper().forMobile();
Hopp.load(new File(mapsFolder, currentArea).getAbsolutePath()); //load
graph.........
.................
GHRequest req = new GHRequest(fromLat, fromLon, toLat, toLon);
req.setVehicle("bike").setAlgorithm(AlgorithmOptions.ASTAR_BI);
My error in log is : [java.lang.IllegalArgumentException: Vehicle bike
unsupported.
Supported are:car] .. I don't understand ..
2015-06-29 11:16 GMT+02:00 Emux <devemux86 at gmail.com>:
> You need to show us the error to understand.
>
> BTW make sure the graph supports the vehicles you want to use (car, bike,
> foot etc).https://lists.openstreetmap.org/listinfo/graphhopper
>
> --
> Emux
> Cruiser <http://wiki.openstreetmap.org/wiki/Cruiser> - Atlas
> <http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150629/0b84d4e2/attachment.html>
More information about the GraphHopper
mailing list