isInRegion static method
坐标是否在国内。
Platforms:
- 🅰️ Android:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🍏 iOS:支持
- 🔶 Harmony:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform)
Parameters:
latitude:纬度。longitude:经度。
Returns:
true表示坐标位于中国境内,否则返回false。
Implementation
static Future<bool> isInRegion({
required double latitude,
required double longitude,
}) =>
_platform.utilsIsInRegion(
latitude: latitude,
longitude: longitude,
);