getFences(Function successCallback, Function errorCallback)
addFence(JSONObject options, Function addFenceSuccess, Function addFenceError);
removeFence(String fenceName, Function removeSuccess, Function removeError);"
init
メソッド説明
Geofencing APIの初期化を行う。
function initGeofencingSuccess()
{
//
}
function initGeofencingError(GeofencingError error)
{
var errorCode = error.code;
}
applican.geofencing.init(initGeofencingSuccess, initGeofencingError);
getFences
メソッド説明
観察中のジェオフェンス一覧取得。
function getFencesSuccess(fences)
{
for (var i = 0; i < fences.length; i++) {
var fenceName = fences[i].identifier;
var latitude = fences[i].latitude;
var longitude = fences[i].longitude;
var radius = fences[i].radius;
}
}
function startMonitoringError(GeofencingError error)
{
var errorCode = error.code;
}
applican.geofencing.getFences(getFencesSuccess, getFencesError);