throw new UnsupportedOperationException();
}
private Route createNmn(NmnRoute route, int startIndex, int endIndex) {
ObjectFactory objectFactory = new ObjectFactory();
Route result = objectFactory.createRoute();
result.setName(asRouteName(route.getName()));
for (int i = startIndex; i < endIndex; i++) {
NmnPosition position = route.getPosition(i);
Route.Point point = objectFactory.createRoutePoint();
point.setX(formatBigDecimal(position.getLongitude(), 7));
point.setY(formatBigDecimal(position.getLatitude(), 7));
point.setName(position.getDescription());
result.getPoint().add(point);
}
return result;
}