GET/elevation/point
Elevation Point
Use the elevation endpoint to retrieve global elevation data, including ocean bathymetry and land topography for a specific location.
Query Parameters
These are the available query parameters for this endpoint. Required parameters are pre-checked and must be included. Tick any additional parameters to update the sample request and code snippets.
Response
The response contains a data object with the following fields.
Response Meta
As part of the response, you will find an object called meta with the following content.
Responses
- 200
- 402
- 403
- 422
Elevation data
Error: Payment required (quota exceeded)
Forbidden
Error: Unprocessable Entity
Reference (plain text)
GET /elevation/point — Elevation Point
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
lat | query | number | yes | Latitude in decimal degrees |
lng | query | number | yes | Longitude in decimal degrees |
Responses
200 — Elevation data
application/json
| Field | Type | Required | Description |
|---|---|---|---|
data | object(elevation: number) | no | |
meta | object(lat: number, lng: number, start: string, …) | no |
402 — Error: Payment required (quota exceeded)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
errors | object(key: string) | no | |
meta | object(dailyQuota: number, requestCount: number) | no |
403 — Forbidden
application/json
| Field | Type | Required | Description |
|---|---|---|---|
errors | object(key: string) | no |
422 — Error: Unprocessable Entity
application/json
| Field | Type | Required | Description |
|---|---|---|---|
errors | object(key: string) | no |
Response
| Field | Type | Required | Description |
|---|---|---|---|
elevation | number | no | The elevation value given in meters relative to sea level. |
Response Meta
| Field | Type | Required | Description |
|---|---|---|---|
lat | number | no | |
lng | number | no | |
start | string | no | The first timestamp of data returned |
end | string | no | The last timestamp of data returned |
dailyQuota | number | no | The number of requests you are allowed to make each day |
requestCount | number | no | The number of successful requests you have made since 00:00 UTC |
distance | number | no | Distance to the point where the value comes from |
elevation | object(unit: string, source: string) | no | Object holding unit and dataset information for the elevation |