我是这个地理围栏的新手 . 任何人都可以告诉我如何获得geofence唯一ID,设置在以下属性???
window.geofence.addOrUpdate({
id: String, //A unique identifier of geofence
latitude: Number, //Geo latitude of geofence
longitude: Number, //Geo longitude of geofence
radius: Number, //Radius of geofence in meters
transitionType: Number, //Type of transition 1 - Enter, 2 - Exit, 3 - Both
}
任何帮助将不胜感激!
1 回答
您可以使用小代码段生成唯一ID,其中包含长度为8的代码,以生成唯一ID .
标记是
希望它能帮助你 .