hi , this code calculate path for fastest path , How to change for shortest path ?
tnx .
GHRequest req = new GHRequest(fromLat, fromLon, toLat, toLon)
.setAlgorithm(Parameters.Algorithms.DIJKSTRA_BI)
.setWeighting("fastest")
.setVehicle(VEHICLE);