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:

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


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!