Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created in FIWARE Q/A platform on 21-09-2015 at 14:09
Answer this issue at http://stackoverflow.com/questions/32695828/orion-context-broker-query-by-location
Question:
Orion Context Broker - Query By Location
Description:
Following with queries in Orion v0.24.
As pointed out in previous related questions, documentation is ahead to real implementation. Is filter by location with 'geometry' and 'coord' already implemented?
Can anyone provide a query example. I do not understand what/how to pass coordinates. From docs:
List of coordinates (separated by are interpreted depending on the geometry
I tried the following unsuccesfully:
//Call 1
http://<some-ip>:<some-port>/v2/entities?type=Test&geometry=polygon&coords=35.460669951495305,-9.931640625;35.460669951495305,3.07617187;35.460669951495305,3.07617187
//Result
{
"error": "BadRequest",
"description": "invalid character in URI parameter"
}
I tried similar combinations, filtering special characters with encodeURIComponent, but nothing.
Entities in orion have following attribute 'coordenadas':
{
"id": "Test.1",
"type": "Test",
"coordenadas":
,
"fecha": 1440108000000,
"regiones": [
"ES"
]
}
Thanks.
Activity
- All
- Comments
- History
- Activity
- Transitions