如何将CLGeocoder 解析出来的地址转化成百度地图的地址 并在百度地图标注出来
//火星转百度
const double x_pi = 3.14159265358979324 * 3000.0 / 180.0;
-(CLLocationCoordinate2D)MarsToBaidu:(CLLocationCoordinate2D)coordinate
{
double x = coordinate.latitude;
double y = coordinate.longitude;
double z = sqrt(x * x + y * y) + 0.00002 * sin(y * x_pi);
double theta = atan2(y, x) + 0.000003 * cos(x * x_pi);
coordinate.latitude = z * cos(theta)+0.0065;
coordinate.longitude = z * sin(theta)+0.006;
return coordinate;
}