0
在我的應用程序中,我能夠獲取我當前位置的座標。但谷歌的地方串像將位置座標傳遞到谷歌地方查詢字符串
"https://maps.googleapis.com/maps/api/place/search/xml?location=52.577798767,-2.124885567&radius=500&types=bank&sensor=false&key=AIzaSyCcC9pmri9XGOgydfsaadq37cmcb6fsd80"
現在我怎樣才能把我的動態座標(如果我改變我的位置我的座標將是新的),而不是固定座標?
我想在
NSURL *googlePlacesURL = [NSURL URLWithString:googleUrl];
NSData *xmlData = [NSData dataWithContentsOfURL:googlePlacesURL];
a和b使用此字符串是
a = [NSString stringWithFormat:@"LATITUDE: %f", location.coordinate.latitude];
//b = [NSString stringWithFormat:@"LONGITUDE: %f", location.coordinate.longitude];