How to Calculate the Ground Distance or Elevation from Latitude and Longitude,is any Cesium method?

I am beginners in cesiumJS.

Is there any method or a way to calculate the elevation from ground (height) from latitude & longitude.
I need to pass the correct altitude to Air Plane model.

right now using steps are :
1) i am getting height in feet so i converted the altitude from feet to meters i.e. (3000 * 0.3048);
2) i pass the calculated meter height to model than it shows higher than i accepted by its actual height.
3) so , i need to pass the Actual height by minus the ground difference of map or the Elevation of point.

so, the my problem is i am using the default bing api maps.

i seen the terrain provider way to get the height of terrain but the problem is that i am not using any terrain provider.

i have to do by using bing map or default way , don't need any terrain or not by the default (stk terrain by AGI).

so please anyone help me out from this, thank you.

Hello,

Can you please provide a code example showing how you’re adding your model and setting the height?

The method you’re using seems correct. What is your height in feet relative to?

Best,

Hannah

ye sure,

//adding first time model to viewer

I’m not seeing anything incorrect in your code sample. What makes you think the visualization is incorrect?
The only think I can think of is that there may be a problem with your data. Cesium uses height relative to the WGS84 ellipsoid. If your data is relative to a different zero value, that would make it look incorrect.

Best,

Hannah

Hello Hannah,

I know my code is right but my data also is right, i checked myself from every resource. its coming from the raspberry pie.

The height which makes me to think wrong was that is my plane is on landing position but the height is shown higher from their landing. if i pass the height in meters after subtracting the elevation of point its shown properly.

the height which i was getting its in feet (sea level height).

regards,
$anjeev