[GraphHopper] Turn restrictions
Timothy Lehner
tim at accelogress.com
Tue Aug 5 14:27:22 UTC 2014
Hello all,
I was using GraphHopper for routing when I noticed a route involving an
illegal turn (the junction only allows traffic to drive straight through,
but the route instructed the driver to take a right turn)
The OpenStreetMap file has the junction tagged with:
restriction ("only_straight_on")
I start up graph hopper as follows:
==========================
hopper = new GraphHopper().forServer();
hopper.setEnableTurnRestrictions(true);
hopper.setInMemory(true);
hopper.setOSMFile(osmFile);
// where to store graphhopper files?
hopper.setGraphHopperLocation(graphFolder);
hopper.setEncodingManager(new EncodingManager("car"));
hopper.disableCHShortcuts();
// now this can take minutes if it imports or a few seconds for
loading
// of course this is dependent on the area you import
hopper.importOrLoad();
===========================
So I'm pretty sure that GraphHopper should be considering turn
restrictions...
Is this a bug?
I only need routing using a simple Dijkstra algo without CH...
Many thanks,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140805/6ba22972/attachment.html>
More information about the GraphHopper
mailing list