get elevation along a path

I want to find elevation of a path along the line. Is there any api that supports in finding the elevation.

This is the clear view of my idea: https://www.scadacore.com/tools/rf-path/rf-line-of-sight/

Can someone give any idea for implementation of it in cesium…

Thanks.

Hi there,

You can use sampleTerrainMostDetailed to get the terrain height at an array of Cartographic positions. We’ve seen terrain profiles implemented in Cesium in the past, so it’s definitely possible!

Thanks,

Gabby