Web terrain: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (13 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
API | API Base URL: web/terrain | ||
===GET | ===GET txt=== | ||
API Endpoint: web/terrain.txt | API Endpoint: web/terrain.txt | ||
| Line 62: | Line 62: | ||
|} | |} | ||
==== | ====Examples==== | ||
'''Basic Query''': | '''Basic Query''': | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKEN</syntaxhighlight> | ||
| Line 78: | Line 78: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | ||
===GET | ===GET txt=== | ||
API Endpoint: web/terrain. | API Endpoint: web/terrain/{z}/{x}/{y}.txt | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 93: | Line 93: | ||
| | | | ||
|- | |- | ||
| | | z | ||
| | | Path | ||
| | | int | ||
| | | | ||
|- | |- | ||
| | | x | ||
| | | Path | ||
| | | int | ||
| | | | ||
|- | |- | ||
| | | y | ||
| | | Path | ||
| | | int | ||
| | | | ||
|- | |- | ||
| | | v | ||
| Query | | Query | ||
| | | String | ||
| | | | ||
|- | |- | ||
| width | | width | ||
| Line 127: | Line 127: | ||
| float | | float | ||
| 0 | | 0 | ||
|- | |||
| maptype | |||
| Query | |||
| [[Map Type]] | |||
| MAQUETTE | |||
|- | |- | ||
| worlddatum | | worlddatum | ||
| Line 139: | Line 144: | ||
|} | |} | ||
==== | ====Examples==== | ||
''' | '''Query Tiling endpoint: /terrain/{z}/{x}/{y}.txt''': | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain. | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/3/2/1.txt?token=WEB_TOKEN</syntaxhighlight> | ||
===GET bin=== | |||
API Endpoint: web/terrain/{z}/{x}/{y}.bin | |||
===GET | |||
API Endpoint: web/terrain.bin | |||
'''Parameters:''' | '''Parameters:''' | ||
| Line 170: | Line 163: | ||
| | | | ||
|- | |- | ||
| | | z | ||
| | | Path | ||
| | | int | ||
| | | | ||
|- | |- | ||
| | | x | ||
| | | Path | ||
| | | int | ||
| | | | ||
|- | |- | ||
| | | y | ||
| | | Path | ||
| | | int | ||
| | | | ||
|- | |- | ||
| | | v | ||
| Query | | Query | ||
| | | String | ||
| | | | ||
|- | |- | ||
| width | | width | ||
| Line 204: | Line 197: | ||
| float | | float | ||
| 0 | | 0 | ||
|- | |||
| maptype | |||
| Query | |||
| [[Map Type]] | |||
| MAQUETTE | |||
|- | |- | ||
| worlddatum | | worlddatum | ||
| Line 216: | Line 214: | ||
|} | |} | ||
==== | ====Examples==== | ||
''' | '''Terrain Tiles (elevation)''': | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/3/2/1.bin?token=WEB_TOKEN</syntaxhighlight> | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain | |||
{{article end | {{article end | ||
Latest revision as of 16:06, 20 November 2026
API Base URL: web/terrain
GET txt
API Endpoint: web/terrain.txt
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| bbox | Query | String | |
| crs | Query | String | EPSG:3857 |
| id | Query | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
Examples
Basic Query:
https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKENGET txt
API Endpoint: web/terrain/{z}/{x}/{y}.txt
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| z | Path | int | |
| x | Path | int | |
| y | Path | int | |
| v | Query | String | |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| maptype | Query | Map Type | MAQUETTE |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
Examples
Query Tiling endpoint: /terrain/{z}/{x}/{y}.txt:
https://engine.tygron.com/web/terrain/3/2/1.txt?token=WEB_TOKENGET bin
API Endpoint: web/terrain/{z}/{x}/{y}.bin
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| z | Path | int | |
| x | Path | int | |
| y | Path | int | |
| v | Query | String | |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| maptype | Query | Map Type | MAQUETTE |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
Examples
Terrain Tiles (elevation):
https://engine.tygron.com/web/terrain/3/2/1.bin?token=WEB_TOKEN