We want to display POI on the AR view at specific height depending on its distance from current location.
For Example I have 5 POIs in one direction and distance of those POIs from my current location is 10,20,30,40,50 meter.
By default in AR view all the POIs are displaying one behind another.We want to display those POI one by one from bottom to top.
So the POI at 10 mtrs away should display at bottom and the POI at 50 mtrs should display at top, all other POI in between these two POIs.
In this way we want to make all POIs visible to user.
We tried with giving different altitude to the POI but does not get required behaviour.
Does anyone know how to do this for wikitude Android and IOS SDK?
Thanks and Regards,
Jayawant Jagtap
W
Wolfgang Damm
said
almost 10 years ago
Altitude information is only taken into account if the loacation information is accurate enough. This usually means that you need a good GPS signal before the altitude is used to position the POIs.
You can make sure that the altitude is used by calling
public void setLocation(double lat,
double lon,
double alt,
float accuracy)
yourself with an valid altitude and an accuracy value of e.g 5.f meter.
Jayawant Jagtap