request.setVehicle(vehicleStr). setWeighting(weighting). setAlgorithm(algoStr). setLocale(localeStr). setPointHints(pointHints).
protected PathWrapper doInBackground(Void... v) { StopWatch sw = new StopWatch().start(); GHRequest req = new GHRequest(fromLat, fromLon, toLat, toLon). setAlgorithm(Algorithms.DIJKSTRA_BI); req.getHints(). put(Routing.INSTRUCTIONS, "false"); GHResponse resp = hopper.route(req); time = sw.stop().getSeconds(); return resp.getBest(); }
setWeighting("fastest"). setVehicle(vehicle). setAlgorithm(DIJKSTRA_BI); setAlgorithm(DIJKSTRA_BI); noSodReq.getHints().put("stall_on_demand", false);
setWeighting("fastest"). setVehicle(vehicle). setAlgorithm(algo);
GHRequest l_request = new GHRequest( p_start.getLatitude(), p_start.getLongitude(), p_end.getLatitude(), p_end.getLongitude() ); l_request.setAlgorithm( CConfiguration.getInstance().get().RoutingAlgorithm ); return m_graphhopper.route(l_request);