Problem to implement a second sortie

Good Day,
how are U?
I report below my code:

const viewer = new Cesium.Viewer(‘cesiumContainer’, {
terrainProvider: Cesium.createWorldTerrain()
});
const osmBuildings = viewer.scene.primitives.add(Cesium.createOsmBuildings());

const flightData = JSON.parse(’[{“longitude”:16.06125,“latitude”:39.9956,“height”:800.32},{“longitude”:16.06143,“latitude”:39.99584,“height”:800.32},{“longitude”:16.06159,“latitude”:39.99607,“height”:800.32},{“longitude”:16.06172,“latitude”:39.99631,“height”:800.32},{“longitude”:16.06193,“latitude”:39.99645,“height”:800.32},{“longitude”:16.06173,“latitude”:39.99655,“height”:800.32},{“longitude”:16.06151,“latitude”:39.99665,“height”:800.32},{“longitude”:16.06121,“latitude”:39.99679,“height”:800.32},{“longitude”:16.06087,“latitude”:39.99693,“height”:800.32},{“longitude”:16.06057,“latitude”:39.99707,“height”:800.32},{“longitude”:16.06025,“latitude”:39.99718,“height”:800.32},{“longitude”:16.06003,“latitude”:39.99729,“height”:800.32},{“longitude”:16.05971,“latitude”:39.99741,“height”:800.32},{“longitude”:16.05931,“latitude”:39.99764,“height”:800.32},{“longitude”:16.05925,“latitude”:39.99786,“height”:800.32},{“longitude”:16.05952,“latitude”:39.99829,“height”:800.32},{“longitude”:16.05971,“latitude”:39.99856,“height”:810.32},{“longitude”:16.05992,“latitude”:39.99887,“height”:820.32},{“longitude”:16.06006,“latitude”:39.99908,“height”:830.32},{“longitude”:16.06037,“latitude”:39.99955,“height”:840.32},{“longitude”:16.06081,“latitude”:40.00008,“height”:850.32},{“longitude”:16.06117,“latitude”:40.00021,“height”:850.31},{“longitude”:16.06151,“latitude”:40.0003,“height”:850.31},{“longitude”:16.06185,“latitude”:40.00037,“height”:850.31},{“longitude”:16.06228,“latitude”:40.00048,“height”:850.31},{“longitude”:16.06288,“latitude”:40.00037,“height”:860.31},{“longitude”:16.06324,“latitude”:40.00023,“height”:870.31},{“longitude”:16.06364,“latitude”:40.00006,“height”:870.31},{“longitude”:16.06434,“latitude”:39.99976,“height”:870.31},{“longitude”:16.06507,“latitude”:39.99945,“height”:870.31},{“longitude”:16.0654,“latitude”:39.99932,“height”:870.31},{“longitude”:16.06574,“latitude”:39.99917,“height”:870.31},{“longitude”:16.06607,“latitude”:39.99904,“height”:870.31},{“longitude”:16.06666,“latitude”:39.99879,“height”:870.31},{“longitude”:16.06698,“latitude”:39.99865,“height”:870.31},{“longitude”:16.06725,“latitude”:39.99855,“height”:870.31},{“longitude”:16.06753,“latitude”:39.99843,“height”:870.3},{“longitude”:16.06781,“latitude”:39.9983,“height”:870.3},{“longitude”:16.06806,“latitude”:39.9982,“height”:870.3},{“longitude”:16.06828,“latitude”:39.99811,“height”:870.3},{“longitude”:16.06907,“latitude”:39.99777,“height”:870.3},{“longitude”:16.0693,“latitude”:39.99767,“height”:870.3},{“longitude”:16.06987,“latitude”:39.99743,“height”:870.3},{“longitude”:16.07019,“latitude”:39.99731,“height”:870.3},{“longitude”:16.07052,“latitude”:39.99716,“height”:870.3}]’);
const timeStepInSeconds = 30;
const totalSeconds = timeStepInSeconds * (flightData.length - 1);
const start = Cesium.JulianDate.fromIso8601(“2021-01-05T10:10:00Z”);
const stop = Cesium.JulianDate.addSeconds(start, totalSeconds, new Cesium.JulianDate());
viewer.clock.startTime = start.clone();
viewer.clock.stopTime = stop.clone();
viewer.clock.currentTime = start.clone();go
viewer.timeline.zoomTo(start, stop);
// Speed up the playback speed 50x.
viewer.clock.multiplier = 10;
// Start playing the scene.
viewer.clock.shouldAnimate = true;
// The SampledPositionedProperty stores the position and timestamp for each sample along the radar sample series.
const positionProperty = new Cesium.SampledPositionProperty();

for (let i = 0; i < flightData.length; i++) {
const dataPoint = flightData[i];

// Declare the time for this individual sample and store it in a new JulianDate instance.
const time = Cesium.JulianDate.addSeconds(start, i * timeStepInSeconds, new Cesium.JulianDate());
const position = Cesium.Cartesian3.fromDegrees(dataPoint.longitude, dataPoint.latitude, dataPoint.height);
// Store the position along with its timestamp.
// Here we add the positions all upfront, but these can be added at run-time as samples are received from a server.
positionProperty.addSample(time, position);

viewer.entities.add({
description: Location: (${dataPoint.longitude}, ${dataPoint.latitude}, ${dataPoint.height}),
position: position,
point: { pixelSize: 10, color: Cesium.Color.RED }
});
}
const airplaneEntity = viewer.entities.add({
availability: new Cesium.TimeIntervalCollection([ new Cesium.TimeInterval({ start: start, stop: stop }) ]),
position: positionProperty,
point: { pixelSize: 30, color: Cesium.Color.GREEN },
path: new Cesium.PathGraphics({ width: 3 })
});
-----------------------------------------------------------------------------------------------------------------------------------------Well, I would create a second sortie and I wanna put together the results.

It’s possible"

I’m waiting for the help.

Giova

“…Our Horizons are Your Horizons…”