1

私の iOS アプリには、Google Maps SDK があり、GMSPlacePickerを使用して、次のような特定の座標周辺の場所を選択しています。

//center is a CLLocationCoordinate2D

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];

GMSPlacePickerConfig *config = [[GMSPlacePickerConfig alloc] initWithViewport:viewport];
   _placePicker = [[GMSPlacePicker alloc] initWithConfig:config];


       [_placePicker pickPlaceWithCallback:^(GMSPlace *place, NSError *error) {

                    if (error != nil) {
                      NSLog(@"Pick Place error %@", [error localizedDescription]);
                    }
                    else if (place) {

                        CLLocationCoordinate2D c = place.coordinate;
                       //place.coordinate doesn't exist

                    }   

        }];

ただし、Google がここにあると述べているにもかかわらず、place.coordinate プロパティはあり ません。これが欠落している理由はありますか?

4

1 に答える 1