addGeoFencePoint static method

Future<void> addGeoFencePoint(
  1. String keyword,
  2. String poiType,
  3. LatLng point,
  4. double aroundRadius,
  5. String customId,
)

根据周边POI创建围栏

keyword POI关键字

poiType POI类型

point 周边区域中心点的经纬度,以此中心点建立周边地理围栏

aroundRadius 周边半径,0-50000米,默认3000米

customId 与围栏关联的自有业务Id

Implementation

static Future<void> addGeoFencePoint(String keyword, String poiType, LatLng point, double aroundRadius, String customId) async {
  await _channel.invokeMethod('addGeoFencePoint', {
    'keyword': keyword,
    'poiType': poiType,
    'point': point.toJson(),
    'aroundRadius': aroundRadius,
    'customId': customId,
  });
}