trackType.getCoord().add(createCoordinates(position, true));
}
placemarkType.setAbstractGeometryGroup(gxObjectFactory.createTrack(trackType));
} else {
LineStringType lineStringType = objectFactory.createLineStringType();
placemarkType.setAbstractGeometryGroup(objectFactory.createLineString(lineStringType));
List<String> coordinates = lineStringType.getCoordinates();
List<KmlPosition> positions = route.getPositions();
for (int i = startIndex; i < endIndex; i++) {
KmlPosition position = positions.get(i);
coordinates.add(createCoordinates(position, false));