【发布时间】:2013-09-12 09:53:14
【问题描述】:
我在我的应用程序中使用了 GOOGLE MAP SDK for ios 而不是苹果地图。我已经通过 google API 调用来查找附近的餐厅。但是没有提到如何在适用于 ios 的 Google MAP SDK 中使用 google api,这是我的代码,
-(void)loadView {
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:11.0183
longitude:76.9725
zoom:15];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
mapView_.delegate = self;
self.view = mapView_;
mapView_.mapType = kGMSTypeSatellite;
}
我应该在哪里使用 google API 来查找附近的 returants 使用
NSString *url = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json?location=%@,%@&radius=%@&types=%@&sensor=false&key=%@",StrCurrentLatitude ,StrCurrentLongitude,@"2000",@"restaurant",kGOOGLE_API_KEY];
请帮我解决!
【问题讨论】:
-
您最终解决了这个问题吗?
-
这是反向地理编码,我刚刚回答了前向地理编码及其类似行 --> stackoverflow.com/questions/23949326/search-on-google-map-sdk/…
标签: iphone ios google-maps-api-3 google-maps-sdk-ios