Value to return for NODATA pixels (areas with no elevation data like oceans in some datasets). 'null' returns JSON null, 'nan' returns NaN, or specify an integer.
samples(integer, query, optional)
Number of equally-spaced samples to interpolate along the path. When provided, returns elevation for points along a path between the specified locations.
Constraints: {'minimum': 1}
Examples (1)
Get elevation for locationsopenapi-spec
curl 'https://api.opentopodata.org/v1/{dataset}'
import requests
resp = requests.get("https://api.opentopodata.org/v1/{dataset}")
data = resp.json()
import zingu_apis
api = zingu_apis.api("opentopodata")
result = api.fetch("v1/{dataset}")
for item in result:
print(item)
const resp = await fetch("https://api.opentopodata.org/v1/{dataset}");
const data = await resp.json();