Api session query: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
API Endpoint: api/session/query/
API Endpoint: api/session/query/


===GET query===
===GET===
API Endpoint: api/session/query/
API Endpoint: api/session/query/


Line 58: Line 58:
|}
|}


===POST query===
===POST===
API Endpoint: api/session/query/
API Endpoint: api/session/query/


Line 102: Line 102:
</syntaxhighlight>
</syntaxhighlight>


===POST query===
===POST===
API Endpoint: api/session/query/
API Endpoint: api/session/query/


Line 144: Line 144:
</syntaxhighlight>
</syntaxhighlight>


===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SENIOR_AND_MAP_IS_CURRENT===
===GET SELECT_NAME_WHERE_CATEGORY_IS_GARDEN===
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SENIOR_AND_MAP_IS_CURRENT
API Endpoint: api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_GARDEN


'''Parameters:'''
'''Parameters:'''
Line 181: Line 181:


===='''Examples====
===='''Examples====
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SENIOR_AND_MAP_IS_CURRENT''':
'''SELECT_NAME_WHERE_CATEGORY_IS_GARDEN''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SENIOR_AND_MAP_IS_CURRENT?crs=3857&f=JSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_GARDEN?crs=3857&f=JSON&token=API_TOKEN</syntaxhighlight>


===GET SELECT_COLOR_WHERE_CATEGORY_IS_LEISURE===
===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT===
API Endpoint: api/session/query/SELECT_COLOR_WHERE_CATEGORY_IS_LEISURE
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT


'''Parameters:'''
'''Parameters:'''
Line 221: Line 221:


===='''Examples====
===='''Examples====
'''SELECT_COLOR_WHERE_CATEGORY_IS_LEISURE''':
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_COLOR_WHERE_CATEGORY_IS_LEISURE?crs=3857&f=JSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT?crs=3857&f=JSON&token=API_TOKEN</syntaxhighlight>


===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_GARDEN_AND_MAP_IS_CURRENT===
===GET SELECT_NAME_WHERE_CATEGORY_IS_LEISURE===
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_GARDEN_AND_MAP_IS_CURRENT
API Endpoint: api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_LEISURE


'''Parameters:'''
'''Parameters:'''
Line 261: Line 261:


===='''Examples====
===='''Examples====
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_GARDEN_AND_MAP_IS_CURRENT''':
'''SELECT_NAME_WHERE_CATEGORY_IS_LEISURE''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_GARDEN_AND_MAP_IS_CURRENT?crs=4326&f=JSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_LEISURE?crs=4326&f=JSON&token=API_TOKEN</syntaxhighlight>


===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SOCIAL_AND_MAP_IS_MAQUETTE===
===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT===
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SOCIAL_AND_MAP_IS_MAQUETTE
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT


'''Parameters:'''
'''Parameters:'''
Line 301: Line 301:


===='''Examples====
===='''Examples====
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SOCIAL_AND_MAP_IS_MAQUETTE''':
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SOCIAL_AND_MAP_IS_MAQUETTE?crs=28992&f=JSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT?crs=28992&f=JSON&token=API_TOKEN</syntaxhighlight>


===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_HEALTHCARE_AND_MAP_IS_CURRENT===
===GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT===
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_HEALTHCARE_AND_MAP_IS_CURRENT
API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT


'''Parameters:'''
'''Parameters:'''
Line 341: Line 341:


===='''Examples====
===='''Examples====
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_HEALTHCARE_AND_MAP_IS_CURRENT''':
'''SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT''':
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_HEALTHCARE_AND_MAP_IS_CURRENT?crs=LOCAL&f=JSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT?crs=LOCAL&f=JSON&token=API_TOKEN</syntaxhighlight>


{{article end
{{article end

Revision as of 08:41, 19 June 2026

API Endpoint: api/session/query/

GET

API Endpoint: api/session/query/

Parameters:

Name Location Type Default value
f Query Format JSON
crs Query String EPSG:3857

GET query

API Endpoint: api/session/query/

Parameters:

Name Location Type Default value
query Path String
value Query String 0.0
f Query Format JSON
validate Query boolean false
crs Query String EPSG:3857

POST

API Endpoint: api/session/query/

Content-Type: application/x-www-form-urlencoded

Parameters:

Name Location Type Default value
f Query Format JSON
crs Query String EPSG:3857

Examples

Curl example POST:

curl 'https://engine.tygron.com/api/session/query/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"TQL Query 1"'

Curl example multi item POST:

curl 'https://engine.tygron.com/api/session/query/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "TQL Query 1", "TQL Query 2", "TQL Query 3" ]'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '"TQL Query 1"'
};
fetch("https://engine.tygron.com/api/session/query/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));

POST

API Endpoint: api/session/query/

Parameters:

Name Location Type Default value
f Query Format JSON
crs Query String EPSG:3857

Examples

Curl example POST:

curl 'https://engine.tygron.com/api/session/query/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"TQL Query 1"'

Curl example multi item POST:

curl 'https://engine.tygron.com/api/session/query/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "TQL Query 1", "TQL Query 2", "TQL Query 3" ]'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '"TQL Query 1"'
};
fetch("https://engine.tygron.com/api/session/query/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));

GET SELECT_NAME_WHERE_CATEGORY_IS_GARDEN

API Endpoint: api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_GARDEN

Parameters:

Name Location Type Default value
query Path String
value Query String 0.0
f Query Format JSON
validate Query boolean false
crs Query String EPSG:3857

Examples

SELECT_NAME_WHERE_CATEGORY_IS_GARDEN:

https://engine.tygron.com/api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_GARDEN?crs=3857&f=JSON&token=API_TOKEN

GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT

API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT

Parameters:

Name Location Type Default value
query Path String
value Query String 0.0
f Query Format JSON
validate Query boolean false
crs Query String EPSG:3857

Examples

SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT:

https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_NORMAL_AND_MAP_IS_CURRENT?crs=3857&f=JSON&token=API_TOKEN

GET SELECT_NAME_WHERE_CATEGORY_IS_LEISURE

API Endpoint: api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_LEISURE

Parameters:

Name Location Type Default value
query Path String
value Query String 0.0
f Query Format JSON
validate Query boolean false
crs Query String EPSG:3857

Examples

SELECT_NAME_WHERE_CATEGORY_IS_LEISURE:

https://engine.tygron.com/api/session/query/SELECT_NAME_WHERE_CATEGORY_IS_LEISURE?crs=4326&f=JSON&token=API_TOKEN

GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT

API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT

Parameters:

Name Location Type Default value
query Path String
value Query String 0.0
f Query Format JSON
validate Query boolean false
crs Query String EPSG:3857

Examples

SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT:

https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_LEISURE_AND_MAP_IS_CURRENT?crs=28992&f=JSON&token=API_TOKEN

GET SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT

API Endpoint: api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT

Parameters:

Name Location Type Default value
query Path String
value Query String 0.0
f Query Format JSON
validate Query boolean false
crs Query String EPSG:3857

Examples

SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT:

https://engine.tygron.com/api/session/query/SELECT_FLOORSIZE_WHERE_CATEGORY_IS_SHOPPING_AND_MAP_IS_CURRENT?crs=LOCAL&f=JSON&token=API_TOKEN

See also