[GraphHopper] Change a node without build to times

Peter K peathal at yahoo.de
Wed Feb 12 14:17:01 UTC 2014


No, this is of course possible. But only if you disable CH (it should be
still faster than eg. pgrouting). Then update the graph directly via
your custom http API or graphhopper java API.

You can add a barrier even per request if you put a penalty for certain
edges while the algorithm is running.

Regards,
Peter.

> marcosi66 at virgilio.it <marcosi66 at virgilio.it> writes:
>
>> Hello, 
>> I have downloaded grapphoper on my pc and I'm doing test on it, I create a server in witch there is grapphopper( for not running in localhost:8989).
>> I am modifying the map.osm for test,
>> The problem I have is this:
>> I want to see one time the result of calculate a route to point A to B and at the second time I want to change a node(for example to add a barrier) in my map(to do that I change a node in the map.osm) and recalculate the route but I don't want to restart the server and calculate the route(I don't want to turn off the server but that refresh the page with an alert("Waiting") for the user).
>> The problem is that: I want to modify automatically  often the map.osm and recalculate route but avoiding to restart everytime the server to rebuild the graph.
> AFAIK this is not possible, if you want to do things like this may be
> you can have a look to http://pgrouting.org/ but with GraphHopper and
> OSRM you'll always have to recompute your datas each time you change
> them.
>
> Regards
>




More information about the GraphHopper mailing list