terrain elevation query service

Is there open source software available to set up an internal terrain elevation query service, similar to what is done with this python query script to an external service:

https://github.com/gliesian-llc/elevation2agl

Thanks,

Rober

Hi Robert,

sampleTerrain will sample an array of Cartographic positions at a specific level of terrain, and sampleTerrainMostDetailed will do the same, but for the highest level of available terrain data.

Thanks,
Gabby