【发布时间】:2016-08-26 15:57:48
【问题描述】:
两天后,我收到以下错误消息: “Places API 库中出现内部错误。如果您认为此错误代表错误,请使用我们社区和支持页面 (https://developers.google.com/places/support) 上的说明提交报告。”
这是我的代码:
-(void)GetCurrentLocation {
[_locationPoint setHidden:NO];
[_placesClient currentPlaceWithCallback:^(GMSPlaceLikelihoodList *likelihoodList, NSError *error) {
if (error != nil) {
NSLog(@"Current Place error %@", [error localizedDescription]);
return;
}
for (GMSPlaceLikelihood *likelihood in likelihoodList.likelihoods) {
GMSPlace *place = likelihood.place;
NSLog(@"Current Place name %@ at likelihood %g", place.name, likelihood.likelihood);
NSLog(@"Current Place address %@", place.formattedAddress);
_depart.text = place.formattedAddress;
NSLog(@"Current Place attributions %@", place.attributions);
NSLog(@"Current PlaceID %@", place.placeID);
NSLog(@"coordinates %f,%f",place.coordinate.latitude,place.coordinate.longitude);
}
}];
}
没看懂,代码没改,突然出现这个错误。
Google Maps SDK for iOS 和 Google Places API for iOS 版本:2.0.26137.0
【问题讨论】:
标签: ios objective-c google-places-api