Uploaded image for project: 'Help-Coaches-Desk'
  1. Help-Coaches-Desk
  2. HELC-852

FIWARE.Request.Coach.CreatiFI.POI Data Provider improvment

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: CreatiFI
    • Labels:
      None

      Description

      Dear FIWARE coach,
      we forward you a support request received from a CreatiFI applicant we are
      not able to solve.
      Please let us know if you need direct contact with the submitter.
      Thanks.

      ****************************

      Hi,

      We are using POI Data Provider GE in order to handle pois in our
      application and CreatiFI OC1 is finishing.

      Related to the API (
      http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_Open_API_Specification)
      we need some clarifications:

      1)which order is adopted to return pois in "radial_search" method? (by
      distance from the center ? any other?)

      2)is it possible to extend response json structure in order to return also
      the distance from the center?

      thanks in advance

      Stefano

      ****************************

      _______________________________________________
      Fiware-creatifi-coaching mailing list
      Fiware-creatifi-coaching@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-creatifi-coaching

      [Created via e-mail received from: Andrea Maestrini <amaestrini@create-net.org>]

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          7d 4h 20m 1 Ari Okkonen 10/Jul/15 3:27 PM
          In Progress In Progress Closed Closed
          1m 35s 1 Ari Okkonen 10/Jul/15 3:29 PM
          backlogmanager Backlog Manager made changes -
          Summary [Fiware-creatifi-coaching] [CreatiFI Italy Hub] POI Data Provider improvment FIWARE.Request.Coach.CreatiFI.POI Data Provider improvment
          backlogmanager Backlog Manager made changes -
          Assignee Ari Okkonen [ ariokkon ] Silvio Cretti [ silvio.cretti ]
          backlogmanager Backlog Manager made changes -
          Link This issue relates to HELP-4558 [ HELP-4558 ]
          ariokkon Ari Okkonen made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Hide
          ariokkon Ari Okkonen added a comment -

          The needed operations are recommended to be done in the client application.

          Show
          ariokkon Ari Okkonen added a comment - The needed operations are recommended to be done in the client application.
          ariokkon Ari Okkonen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          ariokkon Ari Okkonen added a comment - - edited
          • Data from searches are provided in no particuar order.
          • About distance: Distance is not an attribute of a POI. It is about the relation of the POI and the query parameters. The distance can be calculated by the haversine formula https://en.wikipedia.org/wiki/Great-circle_distance in the client application. Calculation of distance in the server is not planned.
          • You may sort the POIs in the client by the distance, if needed. E.g.:
            • Encapsulate the POI UUIDs with distances to an array (JavaScript example):
              [{distance: 738.5, uuid: "ac98fcf7-5280-44d1-bb25-c4627387c86c"}, ... ]
              
            • Sort the array
              distances_and_uuids.sort(function(a, b){return a.distance - b.distance});
              
          Show
          ariokkon Ari Okkonen added a comment - - edited Data from searches are provided in no particuar order. About distance: Distance is not an attribute of a POI. It is about the relation of the POI and the query parameters. The distance can be calculated by the haversine formula https://en.wikipedia.org/wiki/Great-circle_distance in the client application. Calculation of distance in the server is not planned. You may sort the POIs in the client by the distance, if needed. E.g.: Encapsulate the POI UUIDs with distances to an array (JavaScript example): [{distance: 738.5, uuid: "ac98fcf7-5280-44d1-bb25-c4627387c86c" }, ... ] Sort the array distances_and_uuids.sort(function(a, b){ return a.distance - b.distance});
          Hide
          silviocretti Silvio Cretti added a comment -

          CreatiFI phase 1 finishes in few days.
          The developer needs an answer asap.
          Could you provide some hints?
          Thanks in advance.
          silvio

          Show
          silviocretti Silvio Cretti added a comment - CreatiFI phase 1 finishes in few days. The developer needs an answer asap. Could you provide some hints? Thanks in advance. silvio
          silviocretti Silvio Cretti made changes -
          Assignee Silvio Cretti [ silvio.cretti ] Ari Okkonen [ ariokkon ]
          silviocretti Silvio Cretti made changes -
          Component/s CreatiFI [ 10357 ]
          silviocretti Silvio Cretti made changes -
          Field Original Value New Value
          Assignee Silvio Cretti [ silvio.cretti ]
          fw.ext.user FW External User created issue -

            People

            • Assignee:
              silviocretti Silvio Cretti
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: