[GraphHopper] where do is specify that the graph is oriented ?
Alexandre Vallette
alexandre.vallette at snips.net
Fri Feb 14 09:00:38 UTC 2014
does changing to
edges.map(edge => router.edge(
edge.head,
edge.tail, 1, false))
is enough ? if it is sorry for having disturbed
On Fri, Feb 14, 2014 at 9:52 AM, Alexandre Vallette <
alexandre.vallette at snips.net> wrote:
> 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/
>
--
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/05b53043/attachment.html>
More information about the GraphHopper
mailing list