Hi all, I'm trying investigate if it's possible implement a routing method that it's able to recalculate the route when there is an issue in a street near to fastest route.
For example I want to go from an A point to B point but one of the street that I get with graphhopper routing engine has a traffic jam, so I would like to calculate with graphhopper an alternative route, but I don't know how I can do it. I've been trying to do the next thing: I've implemented a Weighting class with a callWeigth method [1], and a class that extends GraphHopper [2] and when I'm going to use it [3] it's not working correctly. I don't know what Im doing wrong because I followed the weighting guidelines. I have only a reason that explains this problem. Could the graph's edges updated when the graph has been already made? I need some help. Thanks Regards!!! [1] https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/BlockingWeighting.java [2] https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/TrafficJamGraph.java [3] https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/emergya/smc/tj/TrafficJamHandler.java
_______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
