[GraphHopper] Calculating fastest path with A*/Dijkstra with CH disabled

mythex3cutioner . mizantropy at gmail.com
Fri Jan 10 02:19:18 UTC 2014


thank you!

Also, two more questions:

1) How can I get street node/edge id(s) with LocationIndex by street's
name? Could you provide a simple example? I was searching for something
like .getByName but could not find it.

2) Is there a way to run routing algorithms inside a "zone"/subgraph?
Let's say our map is like showed in zone.png
We want to get from point A to point B but the algorithms should only go
through nodes that are inside that blueish rectangle.
Is there a way to apply such zone by putting some kind of distance
restriction? Or creating a subgraph?

I'm really really looking forward to hearing from you!


Best regards



On Thu, Jan 9, 2014 at 5:27 PM, Peter K <peathal at yahoo.de> wrote:

>  Ssee FastestWeighting and ShortestWeighting. To use a custom weighting
> you extend the GraphHopper class (method createWeighting).
>
> Regards,
> Peter.
>
>  Hello everybody,
>
>  I don't fully understand how does weighting works in Graphhopper.
> As for 'shortest' path it's, I think, easy - it just simply compares
> distances between nodes and that's it.
> but what about when it comes to 'shortest' path?
>
>  Does the algorithm goes node by node and during each iteration it
> calculates time from distance & average speed for that node and then it
> compares those time values?
> Sorry if that's a dumb question but I just can't follow the code.
>
>  my goal is to manipulate those time values a bit so I want to know where
> exactly should I do that? Inside Dijkstra.java or somehow during GHRequest?
>
>  thank you
>
>
>
>
> _______________________________________________
> GraphHopper mailing listGraphHopper at openstreetmap.orghttps://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> _______________________________________________
> 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/20140110/751be37a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zone.png
Type: image/png
Size: 457135 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140110/751be37a/attachment.png>


More information about the GraphHopper mailing list