wgs84ToGcj02 static method

Future<TencentLocationCoordinate> wgs84ToGcj02(
  1. TencentLocationCoordinate coord
)

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);