From cd4ccee05c4beac80ed44338ea1d231c39e426ee Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Fri, 19 Apr 2024 13:29:10 +0200 Subject: [PATCH] website: make moar better Signed-off-by: Frank Villaro-Dixon --- assets/index.html | 254 ++++++++++++++++------------------------------ 1 file changed, 85 insertions(+), 169 deletions(-) diff --git a/assets/index.html b/assets/index.html index bfe2d0d..3ef389d 100644 --- a/assets/index.html +++ b/assets/index.html @@ -1,177 +1,93 @@ - - + - - elevation-api.eu - Free elevation API - - - - + - - - - - - - + Free Elevation API Service + - - -
- -
-
- + +
+

Free Elevation API Service

+

Get the elevation of every point on earth. So fast, much good!

+
+
+

About This Service

+

This API provides you with access to elevation data across Earth's globe, absolutely free of charge.

+
+
+

API Usage

+

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 +

Parameters:

-
-
- - -
-
-
-

Get started

-

- elevation-api.eu provides a free elevation service aronud the Earth's globe. Under the scenes, it uses the Copernicus DEM dataset from the European Space Agency. -

-
-
-

get elevation

-

- To get elevation (in meters, of course) of a point on earth, you need to do a GET request to the following url:
- https://www.elevation-api.eu/elevation/:lat/:lon -
- Latitude and Longitude should be on the WGS-84 datum. For example, the elevation of lake Leman is: -
- - curl https://www.elevation-api.eu/elevation/46.24566/6.17081
- 368 -
-

- -
-
-

Errors

-

- The elevation api uses the following error codes: -

- - - - - - - - - - - - - - -
Error CodeMeaning
HTTP 501 - The requested elevation is outside the DEM's bound. Usually this happens if you try to request a point on Sea. - You can assume the elevation to be around 0m. -
-
-
-
+

Response:

+

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)

+

Try it out:

+ Get the elevation of the Lake Leman + +
+

Alternative API endpoints

+

JSON result

+

Append ?json to your query to have the return content as a json payload

+

Example

+ https://www.elevation-api.eu/elevation/46.24566/6.17081?json +
+
+

Misc

+

Data source

+

The digital elevation data comes from ESA's Copernicus program.

+

Rate limits

+

Don't be a dick. Less than 10/s is okay

+

Contact

+

For more information, you can reach me at f@vi-di.fr

+
+ - +