我有一个地理触发器,我想读取放置在该触发器的事件属性中的数据。
在我的应用程序将事件数据与设备上下文一起发送到服务器之前,如何读取这些数据?有没有办法向我的回调函数发送一些参数?
  var trigger1 = {
              type: "DwellInside",
              circle: {
                longitude: 88.41, 
                latitude: 22.58,   
                radius: 100000 // 100km
              },
              dwellingTime: 100,
              confidenceLevel: "high", // high confidence that we are in the circle
              callback: this.myFunction,
              eventToTransmit: {
                event: {
                  city: "data.city"   // dynamically added using JSON data.
                },
                transmitImmediately: true
              }
            };