transformGCJ02toWGS84 static method

CoordResult transformGCJ02toWGS84(
  1. double lon,
  2. double lat
)

transform GCJ02 to WGS84 火星坐标系->WGS84坐标系

Implementation

static CoordResult transformGCJ02toWGS84(double lon, double lat) {
  if (isOutOFChina(lon, lat)) return CoordResult(lon, lat);
  CoordResult _res = delta(lon, lat);
  return CoordResult(lon * 2 - _res.lon, lat * 2 - _res.lat);
}