Api session 3dtiles: Difference between revisions
Created page with "API Endpoint: api/session/3dtiles.html {{article end |seealso= *Endpoints }} Category:API" |
No edit summary |
||
| Line 1: | Line 1: | ||
API Endpoint: api/session/3dtiles | API Endpoint: api/session/3dtiles | ||
===GET layer.json=== | |||
API Endpoint: web/3dtiles/layer.json | |||
Produces: application/json | |||
'''Parameters:''' None | |||
===='''Examples==== | |||
===GET {z}/{x}/{y}.terrain=== | |||
API Endpoint: web/3dtiles/{z}/{x}/{y}.terrain | |||
Produces: application/vnd.quantized-mesh | |||
'''Parameters:''' | |||
{|class=wikitable | |||
!Name | |||
!Location | |||
!Type | |||
!Default value | |||
|- | |||
| z | |||
| Path | |||
| Integer | |||
| | |||
|- | |||
| x | |||
| Path | |||
| Integer | |||
| | |||
|- | |||
| y | |||
| Path | |||
| Integer | |||
| | |||
|- | |||
| v | |||
| Query | |||
| String | |||
| | |||
|} | |||
===='''Examples==== | |||
===GET Textures/{path}=== | |||
API Endpoint: web/3dtiles/Textures/{path} | |||
Produces: image/png, image/jpeg | |||
'''Parameters:''' | |||
{|class=wikitable | |||
!Name | |||
!Location | |||
!Type | |||
!Default value | |||
|- | |||
| path | |||
| Path | |||
| String | |||
| | |||
|} | |||
===='''Examples==== | |||
===GET tileset.json=== | |||
API Endpoint: web/3dtiles/tileset.json | |||
Produces: application/json | |||
'''Parameters:''' | |||
{|class=wikitable | |||
!Name | |||
!Location | |||
!Type | |||
!Default value | |||
|- | |||
| webStakeholderID | |||
| Header | |||
| Integer | |||
| | |||
|- | |||
| style | |||
| Query | |||
| [[WebModelStyle]] | |||
| WHITE | |||
|- | |||
| maptype | |||
| Query | |||
| [[Map Type]] | |||
| MAQUETTE | |||
|- | |||
| texture | |||
| Query | |||
| [[TextureSize]] | |||
| MEDIUM | |||
|- | |||
| spacing | |||
| Query | |||
| double | |||
| 2.0 | |||
|- | |||
| bbox | |||
| Query | |||
| String | |||
| | |||
|- | |||
| crs | |||
| Query | |||
| String | |||
| LOCAL | |||
|} | |||
===='''Examples==== | |||
'''Basic endpoint''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Query for MapType: CURRENT''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Model Style: WHITE''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?style=WHITE&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Model Style: COLORED''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?style=COLORED&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Texture Size (smaller reduces memory): SMALL''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?texture=SMALL&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Texture Size (smaller reduces memory): MEDIUM''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?texture=MEDIUM&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Texture Size (smaller reduces memory): LARGE''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?texture=LARGE&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Model Spacing (larger means e.g. trees further apart): 1.0''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?spacing=1.0&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Model Spacing (larger means e.g. trees further apart): 2.0''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?spacing=2.0&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
'''Model Spacing (larger means e.g. trees further apart): 4.0''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/3dtiles/tileset.json?spacing=4.0&token=WEB_TOKEN</syntaxhighlight> | |||
3D Tiles: | |||
===GET {id}.gltf=== | |||
API Endpoint: web/3dtiles/{id}.gltf | |||
'''Parameters:''' | |||
{|class=wikitable | |||
!Name | |||
!Location | |||
!Type | |||
!Default value | |||
|- | |||
| style | |||
| Query | |||
| [[WebModelStyle]] | |||
| WHITE | |||
|- | |||
| maptype | |||
| Query | |||
| [[Map Type]] | |||
| MAQUETTE | |||
|- | |||
| id | |||
| Path | |||
| Integer | |||
| | |||
|- | |||
| custom | |||
| Query | |||
| boolean | |||
| false | |||
|- | |||
| detail | |||
| Query | |||
| boolean | |||
| false | |||
|- | |||
| texture | |||
| Query | |||
| [[TextureSize]] | |||
| MEDIUM | |||
|- | |||
| spacing | |||
| Query | |||
| double | |||
| 2.0 | |||
|} | |||
===='''Examples==== | |||
{{article end | {{article end | ||
|seealso= | |seealso= | ||
Revision as of 10:13, 15 June 2026
API Endpoint: api/session/3dtiles
GET layer.json
API Endpoint: web/3dtiles/layer.json
Produces: application/json
Parameters: None
Examples
GET {z}/{x}/{y}.terrain
API Endpoint: web/3dtiles/{z}/{x}/{y}.terrain
Produces: application/vnd.quantized-mesh
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| z | Path | Integer | |
| x | Path | Integer | |
| y | Path | Integer | |
| v | Query | String |
Examples
GET Textures/{path}
API Endpoint: web/3dtiles/Textures/{path}
Produces: image/png, image/jpeg
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| path | Path | String |
Examples
GET tileset.json
API Endpoint: web/3dtiles/tileset.json
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| style | Query | WebModelStyle | WHITE |
| maptype | Query | Map Type | MAQUETTE |
| texture | Query | TextureSize | MEDIUM |
| spacing | Query | double | 2.0 |
| bbox | Query | String | |
| crs | Query | String | LOCAL |
Examples
Basic endpoint:
https://engine.tygron.com/web/3dtiles/tileset.json?token=WEB_TOKEN3D Tiles:
Query for MapType: CURRENT:
https://engine.tygron.com/web/3dtiles/tileset.json?maptype=CURRENT&token=WEB_TOKEN3D Tiles:
Model Style: WHITE:
https://engine.tygron.com/web/3dtiles/tileset.json?style=WHITE&token=WEB_TOKEN3D Tiles:
Model Style: COLORED:
https://engine.tygron.com/web/3dtiles/tileset.json?style=COLORED&token=WEB_TOKEN3D Tiles:
Texture Size (smaller reduces memory): SMALL:
https://engine.tygron.com/web/3dtiles/tileset.json?texture=SMALL&token=WEB_TOKEN3D Tiles:
Texture Size (smaller reduces memory): MEDIUM:
https://engine.tygron.com/web/3dtiles/tileset.json?texture=MEDIUM&token=WEB_TOKEN3D Tiles:
Texture Size (smaller reduces memory): LARGE:
https://engine.tygron.com/web/3dtiles/tileset.json?texture=LARGE&token=WEB_TOKEN3D Tiles:
Model Spacing (larger means e.g. trees further apart): 1.0:
https://engine.tygron.com/web/3dtiles/tileset.json?spacing=1.0&token=WEB_TOKEN3D Tiles:
Model Spacing (larger means e.g. trees further apart): 2.0:
https://engine.tygron.com/web/3dtiles/tileset.json?spacing=2.0&token=WEB_TOKEN3D Tiles:
Model Spacing (larger means e.g. trees further apart): 4.0:
https://engine.tygron.com/web/3dtiles/tileset.json?spacing=4.0&token=WEB_TOKEN3D Tiles:
GET {id}.gltf
API Endpoint: web/3dtiles/{id}.gltf
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| style | Query | WebModelStyle | WHITE |
| maptype | Query | Map Type | MAQUETTE |
| id | Path | Integer | |
| custom | Query | boolean | false |
| detail | Query | boolean | false |
| texture | Query | TextureSize | MEDIUM |
| spacing | Query | double | 2.0 |