diff --git a/assets/index.html b/assets/index.html index 3ef389d..ba418af 100644 --- a/assets/index.html +++ b/assets/index.html @@ -1,5 +1,6 @@ +
@@ -12,19 +13,22 @@ 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); + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } + footer { text-align: center; padding: 10px 0; @@ -34,16 +38,19 @@ bottom: 0; width: 100%; } + code { background: #eee; padding: 2px 5px; border-radius: 3px; } + a { color: #07a; } +To use the API, make a GET request to this endpoint with the required parameters. Here is an example request:
-https://www.elevation-api.eu/elevation/:lat/:lon
+ To use the API, make a GET request to this endpoint with the required parameters. Here is an example request: +
+https://www.elevation-api.eu/v1/elevation/:lat/:lon[?json]
The API will return the elevation in meters. For example:
42
- If the point is not into the DEM dataset, the response code will be 501 (or Null
in JSON mode)
If the point is not into the DEM dataset, the response code will be 501 (or Null
in JSON mode)
+
Append ?json
to your query to have the return content as a json payload
https://www.elevation-api.eu/v1/elevation?pts=[[lat1,lon1],[lat2,lon2],[lat3,lon3]]
https://www.elevation-api.eu/elevation/46.24566/6.17081?json
+
+ https://www.elevation-api.eu/v1/elevation?pts=[[46.24566,6.17081],[46.85499,6.78134]]
+
The digital elevation data comes from ESA's Copernicus program.
Don't be a dick. Less than 10/s is okay
+Don't be an idiot. Less than 10/s is okay
For more information, you can reach me at f@vi-di.fr
© 2024 Frank Villaro-Dixon. No rights reserved
- +