[GraphHopper] where do is specify that the graph is oriented ?
Alexandre Vallette
alexandre.vallette at snips.net
Fri Feb 14 08:52:55 UTC 2014
hello,
i've been surprised to see that the routing created by the following code
is not oriented (the computed path goes through some edges in the opposite
direction). I have a list of nodes and edges (n1 -> n2)
val ram = new RAMDirectory("mygraph.graph", true)
val encodingmanager = new EncodingManager("CAR")
val carEncoder = encodingmanager.getEncoder("CAR")
val weighting = new ShortestWeighting()
val router = new LevelGraphStorage(ram, encodingmanager)
//Create router
router.create(nodes.size)
//Compute graph edges
edges.map(edge => router.edge(
edge.head,
edge.tail, 1, true))
what am my doing wrong ?
thanks
--
Dr Alexandre Vallette, PhD
www.snips.net
co-founder
+ 33 (0) 6 71358943
alexandre.vallette at snips.net
skype: vallettea
twitter: @vallettea
linkedIn: fr.linkedin.com/in/vallettea/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140214/c386b0c0/attachment.html>
More information about the GraphHopper
mailing list