Cesiumjs SampledPositionProperty clock event

I have used SampledPositionProperty from my geojson data, to animate model with timeline/clock. Everything is working fine. Now I want to display model’s position, speed, altitude etc, and update on a UI, while model is animating with timeline/clock.
How would I get those variable from where?

computePath(geojson:any) {

      let property = new Cesium.SampledPositionProperty();

      for(let i = 0; i < geojson.features.length; i++) {

        let feature = geojson.features[i];

        let time = Cesium.JulianDate.fromDate( new Date( feature.properties.time ) );

        let long = feature.geometry.coordinates[0];

        let lat = feature.geometry.coordinates[1];

        let altitude:number = feature.properties.Altitude;

        let position = Cesium.Cartesian3.fromDegrees( long, lat, altitude );

        property.addSample(time, position);

        //Also create a point for each sample we generate.

        let csvEntityPath = this.viewer.entities.add({

          position: position,

          point: {

            pixelSize: 1,

            color: Cesium.Color.TRANSPARENT,

            outlineColor: Cesium.Color.YELLOW,

            outlineWidth: 1,





      return property;


let csvEntity = this.viewer.entities.add({

              //Use computed positions

              position: property,

              //Automatically compute orientation based on position movement.

              orientation: new Cesium.VelocityOrientationProperty(property),


              //Load the Cesium plane model to represent the entity

              model: new Cesium.ModelGraphics(model),



              interpolationDegree: 5,

              interpolationAlgorithm: Cesium.LagrangePolynomialApproximation,



Thank you for sharing this with the community. Can you please provide a little bit more information on your application? What is your intended use case? What metadata does your GeoJSON data set have? In addition, sharing a sandcastle demo of what you have so far would be helpful.

In the meantime, my guess would be that your model does not have the desired metadata (speed, altitude, etc.). You most likely need to calculate these attributes yourself at runtime and display them as screen overlays using HTML and CSS.