generated from MapColonies/ts-npm-package-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add elevation service docs (#61)
* fix: add elevation service docs * fix: pr comments * fix: pr cooments take 2
- Loading branch information
Showing
4 changed files
with
394 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
id: dem-elevation-service | ||
slug: info | ||
title: Elevation ⛰️ | ||
description: Service to return geographic coordinate [lat, lon] elevation | ||
tags: | ||
- dem | ||
- API | ||
- elevation | ||
- height | ||
- coordinate | ||
--- | ||
|
||
# Elevation Service ⛰️ | ||
|
||
:::info | ||
Click [here](/docs/MapColonies/dem/services/elevation/api) for the OpenAPI | ||
::: | ||
|
||
## Purpose | ||
Allows users to request elevation(height) information at a given location(s)/position(s) in [lon,lat] format with/without extra data eg. resolution, DTM/DSM, etc. | ||
|
||
## Terminology | ||
|
||
Elevation info might be returned from following materials: | ||
1. DTM - terrain materials. | ||
2. DSM - surface materials. | ||
3. MIXED - according to most detailed(best resolution) materials. | ||
|
||
## Usage | ||
|
||
|
||
:::caution | ||
**- You may request values for up to 250 points at once. In case you have more than that, you should divide it into bulks.** | ||
**- Coordinates order is not preserved.**<br/> | ||
**- You will need an API token as part of the service authentication. **<br/> | ||
**- When getting a time-out in a result of request, please try same API call again.** | ||
::: | ||
|
||
### API parameters(payload) explanation | ||
The structure (JSON schema) is as follows: | ||
|
||
|
||
```json title="JSON Schema of Request" | ||
{ | ||
"positions": [ | ||
{ | ||
"longitude": 0, | ||
"latitude": 0 | ||
} | ||
], | ||
"productType": "MIXED", | ||
"excludeFields": [ | ||
"productType" | ||
] | ||
} | ||
``` | ||
#### 🔴 positions (required) | ||
**Array** of geographical coordinates <br/> | ||
Limited up to **250** coordinates | ||
|
||
#### 🟡 productType (optional, MIXED is default) | ||
**String** one of <i>DTM | DSM | MIXED</i> | ||
|
||
#### 🟡 excludeFields (optional, empty by default) | ||
**Array**, possible values are <i>productType | updateDate | resolutionMeter </i><br/> | ||
By default you'll recieve coordinate respective elevation info along with returned **height**<br/> | ||
Elevation info cotains following:<br/> | ||
|
||
* <i>productType</i> - from which type of material it's extracted (DTM or DSM) | ||
* <i>updateDate</i> - material update date | ||
* <i>resolutionMeter</i> - resolution in meters of material where from height was extracted | ||
|
||
:::caution | ||
You can discard fully or partial elevation info by mentioning irrelevant fields in API call | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.