tspPlan2.setOrigin(doubles);
tspPlan2.setTime(-1);
tspPlan2.setWay(null);
tspPlan2.setStops(stops[i].getStops());
tspplan[i] = tspPlan2;
GetTravellingSalesmanPlan param = new GetTravellingSalesmanPlan();
param.setMaxDistance(maxDistance);
param.setMaxTime(maxTime);
param.setStartTime(startTime);
param.setTimeSpentOnStop(timeSpentOnStop);
param.setParam(tspplan[i]);
try {
GetTravellingSalesmanPlanResponse res = rss
.getTravellingSalesmanPlan(param);
tspplan[i] = res.get_return();