return destination;
}
private Tour createGoPal(GoPalRoute route, int startIndex, int endIndex) {
ObjectFactory objectFactory = new ObjectFactory();
Tour tour = objectFactory.createTour();
tour.setRouteOptions(createRouteOptions(route));
for (int i = startIndex; i < endIndex; i++) {
GoPalPosition position = route.getPosition(i);
if (i == startIndex) {
tour.setStart(createStart(position));
} else {
tour.getDestination().add(createDestination(position));
}
}
return tour;
}