Web terrain: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 72: Line 72:
'''Query Tiling endpoint: /terrain/{y}/{x}/{y}.txt''':
'''Query Tiling endpoint: /terrain/{y}/{x}/{y}.txt''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/3/2/1.txt?token=WEB_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/3/2/1.txt?token=WEB_TOKEN</syntaxhighlight>
===GET tex===
API Endpoint: web/terrain/{z}/{x}/{y}.tex
Content-Type: application/json
'''Parameters:'''
{|class=wikitable
!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/{y}/{x}/{y}.tex''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/3/2/1.tex?token=WEB_TOKEN</syntaxhighlight>


===GET bin===
===GET bin===

Revision as of 07:44, 22 June 2026

API Endpoint: web/terrain/{z}/{x}/{y}

GET txt

API Endpoint: web/terrain/{z}/{x}/{y}.txt

Content-Type: application/json

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/{y}/{x}/{y}.txt:

https://engine.tygron.com/web/terrain/3/2/1.txt?token=WEB_TOKEN

GET bin

API Endpoint: web/terrain/{z}/{x}/{y}.bin

Content-Type: application/json

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/{y}/{x}/{y}.bin:

https://engine.tygron.com/web/terrain/3/2/1.bin?token=WEB_TOKEN

See also