Hello,
I'm used to use DijkstraShortestPathFinder to get paths (for pesdestrials, water..) using the code below :
DijkstraIterator.EdgeWeighter edgeWeighter = new DijkstraIterator.EdgeWeighter() {
public double getWeight(Edge edgeIn) {
LineString aLineString = (LineString) edgeIn.getObject();
return aLineString.getLength();
}
};
DijkstraShortestPathFinder pathFinder = new DijkstraShortestPathFinder(
graphIn, nodeDepartIn, edgeWeighter);
pathFinder.calculate();
Path path = pathFinder.getPath(nodeArriveeIn);
I'm trying to use it for vehicules routing.
The problem is that vehicule are not allow to use one way streets in the wrong direction.
So, I wanted to change the DijkstraShortestPathFinder class to say "do not use the one way in the wrong direction".
But, DijkstraShortestPathFinder uses graphs and a graph does not have the information saying that the street is one way.
Does anyone has any idea how to say (with a given graph, example with or without tollway) : ok you can go this way... or not ?
Jérémy
