0
在我的应用程序中,我需要从当前位置查找附近的地方,并将这些地点的ID导出到我的数据库。就这些。我将下面的代码用于Google Places API,然后从地图上的当前位置看到标记的附近地点。然后我想获得这些地方的ID。我怎样才能得到这个?iOS - 附近有Google Places API导出到数据库的附近地点
- (IBAction)pickPlace:(UIButton *)sender {
CLLocationCoordinate2D center = CLLocationCoordinate2DMake(51.5108396, -0.0922251);
CLLocationCoordinate2D northEast = CLLocationCoordinate2DMake(center.latitude + 0.001, center.longitude + 0.001);
CLLocationCoordinate2D southWest = CLLocationCoordinate2DMake(center.latitude - 0.001, center.longitude - 0.001);
GMSCoordinateBounds *viewport = [[GMSCoordinateBounds alloc] initWithCoordinate:northEast coordinate:southWest];}