Wikitude SDK - range
-
28-05-2021 - |
题
I am using the Wikitude API to develop an AR application for android. I would to define the range to search for the poi's, but i can't find it anywhere. Does the api permit to define the range?
解决方案
have a look at the ActionRanges in the Wikitude reference library. That is what you are looking for in terms of radius and geofence.
actionRange = new AR.ActionRange(geoObject, 500);
From the documentation
AR.ActionRange ( geoLocation , radius , options )
Parameters:
geoLocation <GeoLocation> a single GeoLocation defining the center point of the circle.
radius <float> the radius of the ActionRange in meters.
options <object> Setup-Parameters to customize additional object properties.
其他提示
Your mentioned Android API is deprecated and offers a very limited feature-set.
Please have a look at http://www.wikitude.com/developer/architect
Here you find latest Version of the SDK which enables offline usage, and a huge number of customizations (animations, html, CSS, JS...) It is JS based and allows you to build mobile AR apps without any sensor-handling.
Kind regards, Andi (from Wikitude's Android Team)