Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4257

FIWARE.Question.Tech.Data.OrionContextBroker.HowToQueryByLocation

    Details

      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":

      { "type": "geo:point", "value": "43.7723705, -7.6784461" }

      ,
      "fecha": 1440108000000,
      "regiones": [
      "ES"
      ]
      }

      Thanks.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: