2024-04-15 22:32:29 +00:00
|
|
|
<!DOCTYPE html>
|
2024-04-19 11:29:10 +00:00
|
|
|
<html lang="en">
|
2024-04-21 12:11:37 +00:00
|
|
|
|
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;
|
|
|
|
}
|
2024-04-21 12:11:37 +00:00
|
|
|
|
2024-04-19 11:29:10 +00:00
|
|
|
header {
|
|
|
|
background: #007BFF;
|
|
|
|
color: #ffffff;
|
|
|
|
padding: 10px 20px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2024-04-21 12:11:37 +00:00
|
|
|
|
2024-04-19 11:29:10 +00:00
|
|
|
section {
|
|
|
|
padding: 20px;
|
|
|
|
margin: 0 10px;
|
|
|
|
background: #ffffff;
|
|
|
|
border-radius: 8px;
|
2024-04-21 12:11:37 +00:00
|
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
2024-04-19 11:29:10 +00:00
|
|
|
}
|
2024-04-21 12:11:37 +00:00
|
|
|
|
2024-04-19 11:29:10 +00:00
|
|
|
footer {
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
|
|
|
background: #007BFF;
|
|
|
|
color: white;
|
|
|
|
/*position: fixed;*/
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2024-04-21 12:11:37 +00:00
|
|
|
|
2024-04-19 11:29:10 +00:00
|
|
|
code {
|
|
|
|
background: #eee;
|
|
|
|
padding: 2px 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2024-04-21 12:11:37 +00:00
|
|
|
|
2024-04-19 11:29:10 +00:00
|
|
|
a {
|
|
|
|
color: #07a;
|
|
|
|
}
|
|
|
|
</style>
|
2024-04-15 22:32:29 +00:00
|
|
|
</head>
|
2024-04-21 12:11:37 +00:00
|
|
|
|
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>
|
2024-04-21 12:11:37 +00:00
|
|
|
<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/v1/elevation/:lat/:lon[?json]</code>
|
2024-04-19 11:29:10 +00:00
|
|
|
<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-21 12:11:37 +00:00
|
|
|
<li><strong>?json</strong> - Append this to have the result retuned as JSON</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>
|
2024-04-21 12:11:37 +00:00
|
|
|
<p>If the point is not into the DEM dataset, the response code will be 501 (or <code>Null</code> in JSON mode)
|
|
|
|
</p>
|
2024-04-19 11:29:10 +00:00
|
|
|
<h3>Try it out:</h3>
|
2024-04-21 12:11:37 +00:00
|
|
|
<a href="http://www.elevation-api.eu/v1/elevation/46.24566/6.17081">Get the elevation of the Lake Leman</a>
|
2024-04-19 11:29:10 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
2024-04-21 12:11:37 +00:00
|
|
|
<h2>JSON API endpoint (multi coordinates)</h2>
|
|
|
|
You can also request many coordinates at once by using the following endpoint:
|
|
|
|
<code>https://www.elevation-api.eu/v1/elevation?pts=[[lat1,lon1],[lat2,lon2],[lat3,lon3]]</code>
|
2024-04-19 11:29:10 +00:00
|
|
|
<h4>Example</h4>
|
2024-04-21 12:11:37 +00:00
|
|
|
<code><a href="https://www.elevation-api.eu/v1/elevation?pts=[[46.24566,6.17081],[46.85499,6.78134]]">
|
|
|
|
https://www.elevation-api.eu/v1/elevation?pts=[[46.24566,6.17081],[46.85499,6.78134]]
|
|
|
|
</a></code>
|
2024-04-19 11:29:10 +00:00
|
|
|
</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>
|
2024-04-21 12:11:37 +00:00
|
|
|
<p>Don't be an idiot. Less than 10/s is okay</p>
|
2024-04-19 11:29:10 +00:00
|
|
|
<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>
|
2024-04-19 11:29:10 +00:00
|
|
|
|
2024-04-21 12:11:37 +00:00
|
|
|
</html>
|