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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        oriondev TID Orion Developer made changes -
        Summary FIWARE.Question.Lab.Orion Context Broker - Query By Location FIWARE.Question.Tech.Data.OrionContextBroker.HowToQueryByLocation
        fermin Fermín Galán made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fermin Fermín Galán made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fermin Fermín Galán made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        mev Manuel Escriche made changes -
        Assignee Fermín Galán [ fermin ]
        mev Manuel Escriche made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created 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: