Web Endpoint: Difference between revisions
No edit summary |
No edit summary |
||
| (18 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Endpoint: web/ | |||
===getKeepAlive=== | ===getKeepAlive=== | ||
Path: web/resettimeout | Path: web/resettimeout | ||
| Line 10: | Line 9: | ||
'''Parameters:''' None | '''Parameters:''' None | ||
=== | ===getCSS=== | ||
Path: web/ | Path: web/{name}.css | ||
Type: GET | Type: GET | ||
Produces: | Produces: text/css | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 34: | Line 27: | ||
| String | | String | ||
| | | | ||
|- | |||
| replacetoken | |||
| Query | |||
| boolean | |||
| true | |||
|} | |} | ||
=== | ===get2DMap=== | ||
Path: web/{ | Path: web/{a:2dmap.html|map.html} | ||
Type: GET | Type: GET | ||
| Line 55: | Line 53: | ||
| | | | ||
|- | |- | ||
| | | base | ||
| Query | | Query | ||
| | | [[WebBaseMap]] | ||
| | | | ||
|} | |} | ||
=== | ===get3DMap=== | ||
Path: web | Path: web/{a:3dmap.html|cesium.html} | ||
Type: GET | |||
Produces: text/html | |||
'''Parameters:''' | '''Parameters:''' | ||
| Line 93: | Line 78: | ||
| | | | ||
|- | |- | ||
| | | overlay | ||
| | | Query | ||
| | | Integer | ||
| | |||
|- | |||
| base | |||
| Query | |||
| [[WebBaseMap]] | |||
| | |||
|- | |||
| style | |||
| Query | |||
| [[WebModelStyle]] | |||
| | |||
|- | |||
| shadow | |||
| Query | |||
| Boolean | |||
| | |||
|- | |||
| texture | |||
| Query | |||
| [[TextureSize]] | |||
| | | | ||
|- | |- | ||
| | | spacing | ||
| | | Query | ||
| | | Double | ||
| | | | ||
|} | |} | ||
=== | ===getAssets=== | ||
Path: web/{ | Path: web/assets/{path : [a-zA-Z0-9/._-]+} | ||
Type: GET | Type: GET | ||
Produces: | Produces: image/png , image/jpeg | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 118: | Line 123: | ||
!Default value | !Default value | ||
|- | |- | ||
| | | path | ||
| Path | | Path | ||
| String | | String | ||
| | | | ||
|} | |} | ||
=== | ===getDomainLogo=== | ||
Path: web/ | Path: web/domain.png | ||
Type: GET | Type: GET | ||
Produces: | Produces: image/png | ||
'''Parameters:''' None | |||
===getLibJS=== | |||
Path: web/{name}.js | |||
Type: GET | |||
'''Parameters:''' | '''Parameters:''' | ||
| Line 143: | Line 149: | ||
!Default value | !Default value | ||
|- | |- | ||
| | | name | ||
| | | Path | ||
| | | String | ||
| | | | ||
|} | |} | ||
=== | ===getPanel=== | ||
Path: web/{ | Path: web/{path:|index.html|panel.html|panel.body} | ||
Type: GET | Type: GET | ||
| Line 173: | Line 174: | ||
| | | | ||
|- | |- | ||
| | | stakeholderid | ||
| Query | | Query | ||
| Integer | | Integer | ||
| | | -1 | ||
|- | |- | ||
| | | path | ||
| | | Path | ||
| | | String | ||
| | | | ||
|- | |- | ||
| | | id | ||
| Query | | Query | ||
| | | Integer | ||
| | | -1 | ||
|- | |- | ||
| | | css | ||
| Query | | Query | ||
| Boolean | | Boolean | ||
| | | | ||
|} | |} | ||
=== | ===postEventForm=== | ||
Path: web/ | Path: web/event/{eventclass}/{eventname} | ||
Type: | Type: POST | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 218: | Line 207: | ||
!Default value | !Default value | ||
|- | |- | ||
| | | webStakeholderID | ||
| Header | |||
| Integer | |||
| | |||
|- | |||
| eventclass | |||
| Path | |||
| String | |||
| | |||
|- | |||
| eventname | |||
| Path | | Path | ||
| String | | String | ||
| Line 224: | Line 223: | ||
|} | |} | ||
===getMeasure=== | ===getMeasure=== | ||
Path: web/measure.geojson | Path: web/measure.geojson | ||
| Line 350: | Line 348: | ||
|} | |} | ||
===getIndicator=== | ===getIndicator=== | ||
Path: web/indicator.html | Path: web/indicator.html | ||
| Line 411: | Line 408: | ||
|} | |} | ||
===getNeighborhoods=== | ===getNeighborhoods=== | ||
Path: web/neighborhoods.geojson | Path: web/neighborhoods.geojson | ||
| Line 452: | Line 448: | ||
|} | |} | ||
===getDirection=== | ===getDirection=== | ||
Path: web/direction.{format} | Path: web/direction.{format} | ||
| Line 630: | Line 625: | ||
| int | | int | ||
| 16 | | 16 | ||
|} | |} | ||
| Line 901: | Line 866: | ||
|} | |} | ||
== | '''GET Examples''': | ||
Basic Endpoint: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&token=WEB_TOKEN</syntaxhighlight> | |||
Query for MapType: CURRENT: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
Query for Grid Style: INTERPOLATED: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=INTERPOLATED&token=WEB_TOKEN</syntaxhighlight> | |||
Query for Grid Style: NEAREST: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=NEAREST&token=WEB_TOKEN</syntaxhighlight> | |||
Query for Grid Style: ARROW: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=ARROW&token=WEB_TOKEN</syntaxhighlight> | |||
Query for Grid Style: COLOR: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=COLOR&token=WEB_TOKEN</syntaxhighlight> | |||
Query for Grid Style: FLOAT32: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=FLOAT32&token=WEB_TOKEN</syntaxhighlight> | |||
Query for Grid Style: DIFFERENCE: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=DIFFERENCE&token=WEB_TOKEN</syntaxhighlight> | |||
===postAvgHeight=== | |||
Path: web/avgheight.number | |||
Type: POST | |||
Produces: application/json , application/octet-stream | |||
'''Parameters:''' | |||
{|class=wikitable | |||
!Name | |||
!Location | |||
!Type | |||
!Default value | |||
|- | |||
| f | |||
| Query | |||
| [[Format]] | |||
| JSON | |||
|- | |||
| maptype | |||
| Query | |||
| [[Map Type]] | |||
| MAQUETTE | |||
|- | |||
| buildings | |||
| Query | |||
| boolean | |||
| false | |||
|} | |||
===getLines=== | ===getLines=== | ||
Path: web/lines.geojson | Path: web/lines.geojson | ||
| Line 942: | Line 955: | ||
|} | |} | ||
===getOverlays=== | ===getOverlays=== | ||
Path: web/overlays.geojson | Path: web/overlays.geojson | ||
| Line 1,051: | Line 1,063: | ||
|} | |} | ||
== | ===getPopup=== | ||
Path: web/popup.html | |||
Path: web/ | |||
Type: GET | Type: GET | ||
Produces: | Produces: text/html | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 1,071: | Line 1,082: | ||
| | | | ||
|- | |- | ||
| | | stakeholderid | ||
| Query | |||
| Integer | |||
| -1 | |||
|- | |||
| id | |||
| Query | | Query | ||
| | | Integer | ||
| | | -1 | ||
|- | |- | ||
| | | css | ||
| Query | | Query | ||
| | | Boolean | ||
| | | | ||
|} | |} | ||
=== | ===getPopupClusters=== | ||
Path: web/ | Path: web/popupclusters.geojson | ||
Type: GET | Type: GET | ||
| Line 1,112: | Line 1,128: | ||
|} | |} | ||
=== | ===getPopups=== | ||
Path: web/ | Path: web/popups.geojson | ||
Type: GET | Type: GET | ||
Produces: | Produces: application/json | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 1,131: | Line 1,147: | ||
| | | | ||
|- | |- | ||
| | | bbox | ||
| Query | | Query | ||
| | | String | ||
| | | | ||
|- | |- | ||
| | | crs | ||
| Query | | Query | ||
| | | String | ||
| EPSG:3857 | |||
| | |||
|} | |} | ||
===getScenarios=== | ===getScenarios=== | ||
Path: web/scenarios.geojson | Path: web/scenarios.geojson | ||
| Line 1,173: | Line 1,183: | ||
|} | |} | ||
===getVersion=== | ===getVersion=== | ||
Path: web/version.json | Path: web/version.json | ||
Latest revision as of 15:46, 10 June 2026
API Endpoint: web/
getKeepAlive
Path: web/resettimeout
Type: GET
Produces: text/plain
Parameters: None
getCSS
Path: web/{name}.css
Type: GET
Produces: text/css
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| name | Path | String | |
| replacetoken | Query | boolean | true |
get2DMap
Path: web/{a:2dmap.html|map.html}
Type: GET
Produces: text/html
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| base | Query | WebBaseMap |
get3DMap
Path: web/{a:3dmap.html|cesium.html}
Type: GET
Produces: text/html
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| overlay | Query | Integer | |
| base | Query | WebBaseMap | |
| style | Query | WebModelStyle | |
| shadow | Query | Boolean | |
| texture | Query | TextureSize | |
| spacing | Query | Double |
getAssets
Path: web/assets/{path : [a-zA-Z0-9/._-]+}
Type: GET
Produces: image/png , image/jpeg
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| path | Path | String |
getDomainLogo
Path: web/domain.png
Type: GET
Produces: image/png
Parameters: None
getLibJS
Path: web/{name}.js
Type: GET
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| name | Path | String |
getPanel
Path: web/{path:|index.html|panel.html|panel.body}
Type: GET
Produces: text/html
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| stakeholderid | Query | Integer | -1 |
| path | Path | String | |
| id | Query | Integer | -1 |
| css | Query | Boolean |
postEventForm
Path: web/event/{eventclass}/{eventname}
Type: POST
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| eventclass | Path | String | |
| eventname | Path | String |
getMeasure
Path: web/measure.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
| forcexy | Query | Boolean | |
| id | Query | Integer | -1 |
getActionMenuActions
Path: web/actionmenuactions.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
| id | Query | Integer | -1 |
getActionMenus
Path: web/actionmenus.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
getCinematic
Path: web/cinematic.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
| forcexy | Query | Boolean | |
| id | Query | Integer | -1 |
getIndicator
Path: web/indicator.html
Type: GET
Produces: text/html
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| id | Query | Integer | -1 |
| css | Query | boolean | true |
| maptype | Query | Map Type | MAQUETTE |
getIndicators
Path: web/indicators.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
getNeighborhoods
Path: web/neighborhoods.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| crs | Query | String | EPSG:3857 |
getStreets
Path: web/streets.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| crs | Query | String | EPSG:3857 |
getDirection
Path: web/direction.{format}
Type: GET
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| id | Query | Integer | |
| overlay | Query | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| width | Query | int | 256 |
| height | Query | int | 256 |
| timeframe | Query | int | 0 |
| xy | Query | boolean | 0 |
getFlood
Path: web/flood.{format}
Type: GET
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| id | Query | Integer | |
| overlay | Query | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| timeframe | Query | int | 0 |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
getTerrain
Path: web/terrain.{format}
Type: GET
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 |
getTerrainTile
Path: web/terrain/{z}/{x}/{y}.{format}
Type: GET
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 |
getWater
Path: web/water.{format}
Type: GET
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 |
getWMS
Path: web/wms
Type: GET
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| request | Query | Request | GetCapabilities |
| bbox | Query | String | |
| width | Query | int | 256 |
| height | Query | int | 256 |
| layers | Query | String | |
| layer | Query | String | |
| timeframe | Query | int | 0 |
| crs | Query | String | EPSG:3857 |
| forcexy | Query | Boolean | |
| maptype | Query | Map Type | MAQUETTE |
| x | Query | int | -1 |
| y | Query | int | -1 |
| i | Query | int | -1 |
| j | Query | int | -1 |
| bgcolor | Query | String | |
| format | Query | String | |
| info_format | Query | String | text/plain |
| walled | Query | boolean | true |
| styles | Query | String |
GET Examples:
Basic Endpoint:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&maptype=CURRENT&token=WEB_TOKENQuery for Grid Style: INTERPOLATED:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=INTERPOLATED&token=WEB_TOKENQuery for Grid Style: NEAREST:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=NEAREST&token=WEB_TOKENQuery for Grid Style: ARROW:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=ARROW&token=WEB_TOKENQuery for Grid Style: COLOR:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=COLOR&token=WEB_TOKENQuery for Grid Style: FLOAT32:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=FLOAT32&token=WEB_TOKENQuery for Grid Style: DIFFERENCE:
https://engine.tygron.com/web/wms?REQUEST=GetCapabilities&styles=DIFFERENCE&token=WEB_TOKENpostAvgHeight
Path: web/avgheight.number
Type: POST
Produces: application/json , application/octet-stream
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| f | Query | Format | JSON |
| maptype | Query | Map Type | MAQUETTE |
| buildings | Query | boolean | false |
getLines
Path: web/lines.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| bbox | Query | String | |
| minlength | Query | Double | |
| maxlength | Query | Double | |
| type | Query | Net Type | |
| crs | Query | String | EPSG:3857 |
getOverlays
Path: web/overlays.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
getOverlayImage
Path: web/overlay.png
Type: GET
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| bbox | Query | String | |
| width | Query | int | 256 |
| height | Query | int | 256 |
| id | Query | Integer | -1 |
| timeframe | Query | int | 0 |
| crs | Query | String | EPSG:3857 |
| forcexy | Query | Boolean | |
| bgcolor | Query | String | |
| format | Query | String | |
| info_format | Query | String | text/plain |
| walled | Query | boolean | true |
| styles | Query | String |
getPopup
Path: web/popup.html
Type: GET
Produces: text/html
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| stakeholderid | Query | Integer | -1 |
| id | Query | Integer | -1 |
| css | Query | Boolean |
getPopupClusters
Path: web/popupclusters.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| bbox | Query | String | |
| crs | Query | String | EPSG:3857 |
getPopups
Path: web/popups.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| bbox | Query | String | |
| crs | Query | String | EPSG:3857 |
getScenarios
Path: web/scenarios.geojson
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| webStakeholderID | Header | Integer | |
| crs | Query | String | EPSG:3857 |
getVersion
Path: web/version.json
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| links | Query | String |
getItemVersion
Path: web/itemversion.json
Type: GET
Produces: application/json
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| link | Query | String | |
| itemid | Query | String |