2012-04-03 28 views
0

我使用Wikitude API爲Android開發AR應用程序。 我想定義搜索poi的範圍,但是我無法在任何地方找到它。 api是否允許定義範圍?Wikitude SDK - 範圍

回答

1

看看在Wikitude基準庫中的ActionRanges。這就是你正在尋找的半徑和地理圍欄。

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

actionRange = new AR.ActionRange(geoObject, 500); 

從文檔

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. 
0

您提到的Android API已過時,並且提供了非常有限的功能集。

請看看 http://www.wikitude.com/developer/architect

這裏你可以找到最新這使得離線使用的SDK,以及定製的數量龐大的版本(動畫,HTML,CSS,JS ...) 這是JS並且允許您在沒有任何傳感器處理的情況下構建移動AR應用程序。

親切的問候, 安迪(從Wikitude的Android團隊)

+0

我已經下載了Wikitude的最後一個版本。也許我解釋錯了。正在引用的範圍我認爲它是地理觸發器(geofence)。我們如何定義範圍? – 2012-04-06 10:48:28