Get elevation data
POST
/api/v1/valhalla/height
const url = 'https://example.com/api/v1/valhalla/height';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/valhalla/height \ --header 'Content-Type: application/json' \ --data '{}'Queries Valhalla service for elevation data at coordinates
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Examplegenerated
{}Responses
Section titled “Responses”Elevation data from Valhalla
Media typeapplication/json
object
Examplegenerated
{}Bad Request
Internal Server Error