1 通过坐标跳转到google地图
-(void)showGoogleMapCrood {
float longitude = 38.892219 ;
float latitude = -77.034674;
NSString *url = [NSString stringWithFormat: @ "http://maps.google.com/?q=%f,%f",longitude,latitude];[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url ]];
}
2 通过地址跳转到google地图
-(void)showGoogleMapAddress {
NSString *url = @ "http://maps.google.com/?q=沈阳市三好街";
[[UIApplication sharedApplication] openURL:[ NSURL URLWithString:url]];
}
-(void)showGoogleMapCrood {
float longitude = 38.892219 ;
float latitude = -77.034674;
NSString *url = [NSString stringWithFormat: @ "http://maps.google.com/?q=%f,%f",longitude,latitude];[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url ]];
}
2 通过地址跳转到google地图
-(void)showGoogleMapAddress {
NSString *url = @ "http://maps.google.com/?q=沈阳市三好街";
[[UIApplication sharedApplication] openURL:[ NSURL URLWithString:url]];
}