2024-04-15 22:32:29 +00:00
|
|
|
<!DOCTYPE html>
|
2024-04-19 11:29:10 +00:00
|
|
|
<html lang="en">
|
2024-04-15 22:32:29 +00:00
|
|
|
<head>
|
2024-04-19 11:29:10 +00:00
|
|
|
<meta charset="UTF-8">
|
2024-04-15 22:32:29 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-04-19 11:29:10 +00:00
|
|
|
<title>Free Elevation API Service</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: #f4f4f4;
|
|
|
|
color: #454545;
|
|
|
|
}
|
|
|
|
header {
|
|
|
|
background: #007BFF;
|
|
|
|
color: #ffffff;
|
|
|
|
padding: 10px 20px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
section {
|
|
|
|
padding: 20px;
|
|
|
|
margin: 0 10px;
|
|
|
|
background: #ffffff;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
|
|
}
|
|
|
|
footer {
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
|
|
|
background: #007BFF;
|
|
|
|
color: white;
|
|
|
|
/*position: fixed;*/
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
code {
|
|
|
|
background: #eee;
|
|
|
|
padding: 2px 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #07a;
|
|
|
|
}
|
|
|
|
</style>
|
2024-04-15 22:32:29 +00:00
|
|
|
</head>
|
2024-04-19 11:29:10 +00:00
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>Free Elevation API Service</h1>
|
|
|
|
<p>Get the elevation of every point on earth. So fast, much good!</p>
|
|
|
|
</header>
|
|
|
|
<section>
|
|
|
|
<h2>About This Service</h2>
|
|
|
|
<p>This API provides you with access to elevation data across Earth's globe, absolutely free of charge.</p>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h2>API Usage</h2>
|
|
|
|
<p>To use the API, make a GET request to this endpoint with the required parameters. Here is an example request:</p>
|
|
|
|
<code>https://www.elevation-api.eu/elevation/:lat/:lon</code>
|
|
|
|
<h3>Parameters:</h3>
|
2024-04-15 22:32:29 +00:00
|
|
|
<ul>
|
2024-04-19 11:29:10 +00:00
|
|
|
<li><strong>lat</strong> - Latitude of the location, WGS-84</li>
|
|
|
|
<li><strong>lon</strong> - Longitude of the location, WGS-84</li>
|
2024-04-15 22:32:29 +00:00
|
|
|
</ul>
|
2024-04-19 11:29:10 +00:00
|
|
|
<h3>Response:</h3>
|
|
|
|
<p>The API will return the elevation in meters. For example:</p>
|
|
|
|
<code>42</code>
|
|
|
|
<p>If the point is not into the DEM dataset, the response code will be 501 (or <code>Null</code> in JSON mode)</p>
|
|
|
|
<h3>Try it out:</h3>
|
|
|
|
<a href="http://www.elevation-api.eu/elevation/46.24566/6.17081">Get the elevation of the Lake Leman</a>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h2>Alternative API endpoints</h2>
|
|
|
|
<h3>JSON result</h3>
|
|
|
|
<p>Append <code>?json</code> to your query to have the return content as a json payload</p>
|
|
|
|
<h4>Example</h4>
|
|
|
|
<code><a href="https://www.elevation-api.eu/elevation/46.24566/6.17081?json">https://www.elevation-api.eu/elevation/46.24566/6.17081?json</a></code>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h2>Misc</h2>
|
|
|
|
<h3>Data source</h3>
|
|
|
|
<p>The digital elevation data comes from ESA's Copernicus program.</p>
|
|
|
|
<h3>Rate limits</h3>
|
|
|
|
<p>Don't be a dick. Less than 10/s is okay</p>
|
|
|
|
<h3>Contact</h3>
|
|
|
|
<p>For more information, you can reach me at f@vi-di.fr</p>
|
|
|
|
</section>
|
|
|
|
<footer>
|
|
|
|
<p>© 2024 Frank Villaro-Dixon. No rights reserved</p>
|
|
|
|
</footer>
|
2024-04-15 22:32:29 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
2024-04-19 11:29:10 +00:00
|
|
|
|