0
我在我的應用程序中使用搜索位置API,它的工作正常。 但是在API中,我通過API KEY傳遞參數映射中心座標和半徑。 它的迴應。但是,如果我想要搜索任何位置,可以在屏幕中顯示其區域,還是不在內置的地圖應用程序中。我應該如何去做這件事?有沒有不同的查詢或API來實現它?Google Map Api iPhone
現在,我正在使用下面的查詢。
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json?location=%f,%f&radius=50000&types=&name=%@&sensor=false&key=aaaaaaaaaa",mapView.centerCoordinate.latitude,mapView.centerCoordinate.longitude,searchPlace.text]];
NSURLRequest *request = [[NSURLRequest alloc]initWithURL:url];
NSURLConnection *connect;
connect = [[NSURLConnection alloc]initWithRequest:request delegate:self];
非常感謝。
感謝您的回覆 – Sinha