Api session elevation: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 77: Line 77:
'''Query with World instead of CRS Datum''':
'''Query with World instead of CRS Datum''':
<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>
'''Basic Query''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKEN</syntaxhighlight>
'''Query with BBOX (EPSG:3857)''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight>
'''Query with width=16 and height=16''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKEN</syntaxhighlight>
'''Query for MapType: CURRENT''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight>
'''Query with World instead of CRS Datum''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKEN</syntaxhighlight>
'''Basic Query''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKEN</syntaxhighlight>
'''Query with BBOX (EPSG:3857)''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight>
'''Query with width=16 and height=16''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKEN</syntaxhighlight>
'''Query for MapType: CURRENT''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight>
'''Query with World instead of CRS Datum''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN</syntaxhighlight>


===GET water.{format}===
===GET water.{format}===
Line 137: Line 167:
'''Query Water instead of Terrain elevation''':
'''Query Water instead of Terrain elevation''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/water.txt?token=WEB_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/water.txt?token=WEB_TOKEN</syntaxhighlight>
'''Query Water instead of Terrain elevation''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/water.tex?token=WEB_TOKEN</syntaxhighlight>
'''Query Water instead of Terrain elevation''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/water.bin?token=WEB_TOKEN</syntaxhighlight>


===GET terrain/{z}/{x}/{y}.{format}===
===GET terrain/{z}/{x}/{y}.{format}===
Line 207: Line 243:
'''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>
'''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>
'''Query Tiling endpoint: /terrain/{y}/{x}/{y}.bin''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/3/2/1.bin?token=WEB_TOKEN</syntaxhighlight>


{{article end
{{article end

Latest revision as of 12:47, 15 June 2026

API Endpoint: api/session/elevation

GET terrain.{format}

API Endpoint: web/terrain.{format}

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_TOKEN

Query with BBOX (EPSG:3857):

https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN

Query with width=16 and height=16:

https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKEN

Query for MapType: CURRENT:

https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKEN

Query with World instead of CRS Datum:

https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKEN

Basic Query:

https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKEN

Query with BBOX (EPSG:3857):

https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN

Query with width=16 and height=16:

https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKEN

Query for MapType: CURRENT:

https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKEN

Query with World instead of CRS Datum:

https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKEN

Basic Query:

https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKEN

Query with BBOX (EPSG:3857):

https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN

Query with width=16 and height=16:

https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKEN

Query for MapType: CURRENT:

https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKEN

Query with World instead of CRS Datum:

https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN

GET water.{format}

API Endpoint: web/water.{format}

Parameters:

Name Location Type Default value
format Path String
id Query Integer
maptype Query Map Type MAQUETTE
width Query int 256
height Query int 256
offset Query float 0
flipY Query boolean false
worlddatum Query boolean false
decimation Query int 16

Examples

Query Water instead of Terrain elevation:

https://engine.tygron.com/web/water.txt?token=WEB_TOKEN

Query Water instead of Terrain elevation:

https://engine.tygron.com/web/water.tex?token=WEB_TOKEN

Query Water instead of Terrain elevation:

https://engine.tygron.com/web/water.bin?token=WEB_TOKEN

GET terrain/{z}/{x}/{y}.{format}

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

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

Query Tiling endpoint: /terrain/{y}/{x}/{y}.tex:

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

Query Tiling endpoint: /terrain/{y}/{x}/{y}.bin:

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

See also