geofenceRegionsContainingCoordinate method

Future<List<TencentGeofence>> geofenceRegionsContainingCoordinate(
  1. TencentLocationCoordinate coordinate
)

获取包含指定坐标的所有围栏。

Platforms:

  • 🅰️ Android:不支持,抛出 TencentLocationError(错误码 unsupportedOnThisPlatform
  • 🍏 iOS:支持
  • 🔶 Harmony:不支持,抛出 TencentLocationError(错误码 unsupportedOnThisPlatform

Parameters:

  • coordinate:待检测的坐标,坐标系需与围栏自身的坐标系一致。

Returns:

  • 所有包含该坐标的围栏列表;若没有围栏命中则返回空列表。

Implementation

Future<List<TencentGeofence>> geofenceRegionsContainingCoordinate(
        TencentLocationCoordinate coordinate) =>
    _after(() =>
        _platform.geofenceRegionsContainingCoordinate(_id, coordinate));