GraphHopper.com | Forum | GitHub | Maps | Blog

Calculate shortest path in android


#1

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);