public Point Translate(double lat, double lng, bool address = false) { Point gps; if (lat == -1.0 && lng == -1.0) { gps = new Point(-1.000, -1.000); gps.Address = "未解析到地址."; return(gps); } gps = PositionUtil.gps84_To_Bd09(lat, lng); try { if (address) { gps.Address = GetAddress(gps); } return(gps); } catch (Exception) { gps.Address = "未知"; return(gps); } }