Start a new topic

POI's not displayed correctly

Hi,

Once again I appeal to you to solve a concern.  Once again I appeal to you to solve a concern. I am developing an application on Android to find nearby points, no more than 500 meters, the longitude and latitude of the points are predefined by me in the following way: 

 

poiData.push({

    "id": 2,

    "longitude": -95.036044,

    "latitude": 29.833693,

    "description":"river" ,

    "altitude": AR.CONST.UNKNOWN_ALTITUDE,

    "name": "river"

   });

The problem arises at the moment of showing the points of interest, although these are shown in the correct coordinate, when I move, they change to a totally different position, sometimes even in an opposite orientation.

 

Thank you for your attention


Hello Manuel,

Could you please post a video demonstrating your issue?

Thanks
Eva

 

Hello,

the version is 6.1.0, as far as the location points, were taken using google services, only that manually loaded. I am developing from the code of example 6.4 (selecting pois), replacing the code

 

 

requestDataFromLocal: function requestDataFromLocalFn(centerPointLatitude, centerPointLongitude) {

  var poisToCreate = 20;

  var poiData = [];


  for (var i = 0; i < poisToCreate; i++) {

   poiData.push({

    "id": (i + 1),

    "longitude": (centerPointLongitude + (Math.random() / 5 - 0.1)),

    "latitude": (centerPointLatitude + (Math.random() / 5 - 0.1)),

    "description": ("This is the description of POI#" + (i + 1)), 

    "altitude": AR.CONST.UNKNOWN_ALTITUDE,

    "name": ("POI#" + (i + 1))

   });

  }

  World.loadPoisFromJsonData(poiData);

 }


};

 

 

By static points

 

 

requestDataFromLocal: function requestDataFromLocalFn() {


  var poiData = [];


  poiData.push({

    "id": 2,

    "longitude": -95.036044,

    "latitude": 29.833693,

    "description":"river" ,

    "altitude": AR.CONST.UNKNOWN_ALTITUDE,

    "name": "river"

   });


   World.loadPoisFromJsonData(poiData);

};



 

I am possibly misunderstanding the logic of the problem, i hope you can please guide me

 

thank you very much

Hello Manuel,

Since you are working with GeoLocation services could you please:
  • Make sure you are testing with our latest SDK version, which is 6.1
  • Make sure that your GPS provider is accurate enough and also make sure to calibrate your phone before start testing. Note that the distance calculation highly depends on the accuracy of your LocationProvider implementation. I recommend using GooglePlay Location Service to not rely on a manual GPS fetching approach.
  • Test outside

I would also like to inform you that we are in the process of having a new release that will improve the performance of POIs on Android.


Thanks

Eva

 

Login or Signup to post a comment