Search code examples
androidaugmented-realitywikitude

Wikitude SDK - range


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?


Solution

  • have a look at the ActionRanges in the Wikitude reference library. That is what you are looking for in terms of radius and geofence.

    http://www.wikitude.com/external/doc/documentation/latest/Reference/JavaScript%20Reference/ActionRange.html

    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.