wgs84ToGcj02 static method
WGS-84 坐标转 GCJ-02 坐标。
Platforms:
- 🅰️ Android:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🍏 iOS:支持
- 🔶 Harmony:支持
Parameters:
coord:待转换的 WGS-84 坐标。
Returns:
- 转换后的 GCJ-02 坐标。
Implementation
static Future<TencentLocationCoordinate> wgs84ToGcj02(
TencentLocationCoordinate coord,
) =>
_platform.utilsWgs84ToGcj02(coord);