GHRequest req = new GHRequest(32.070113, 34.790266, 32.067103, 34.777861) .setWeighting("fastest") .setVehicle("car"); GHResponse res = gh.route(req); if(res.hasErrors()) { // handle or throw exceptions res.getErrors() return; } // get path geometry information (latitude, longitude and optionally elevation) PointList pl = res.getPoints(); // distance of the full path, in meter double distance = res.getDistance(); // time of the full path, in milliseconds long millis = res.getTime(); // get information per turn instruction InstructionList il = res.getInstructions();