GooglePlace APIのGoogleMapsを使用していますが、常に同じエラーが発生します。Places APIライブラリで内部エラーが発生しました
"Places APIライブラリで内部エラーが発生しました。このエラーがバグであると思われる場合は、コミュニティおよびサポートページ(https://developers.google.com/places/support)の手順に従ってレポートを提出してください。
Googleマップを試してみました。地図を読み込んだプロジェクトを起動すると、別のオプションのtableViewしか表示されませんでした。
これは私が唯一のユーザーの位置を取得したい、私のコードです:
-(IBAction)getCurrentPlace:(UIButton *)sender {
[placesClient currentPlaceWithCallback:^(GMSPlaceLikelihoodList *placeLikelihoodList, NSError *error){
if (error != nil) {
NSLog(@"Pick Place error %@", [error localizedDescription]);
return;
}
self.nameLabel.text = @"No current place";
self.addressLabel.text = @"";
if (placeLikelihoodList != nil) {
GMSPlace *place = [[[placeLikelihoodList likelihoods] firstObject] place];
if (place != nil) {
self.nameLabel.text = place.name;
self.addressLabel.text = [[place.formattedAddress componentsSeparatedByString:@", "]
componentsJoinedByString:@"\n"];
}
}
}];
}
私はdidFinishLaunchingWithOptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[GMSServices provideAPIKey:@"MY_APIKEY"];
return YES;
}
でマイルAPIKEYを輸入しており、これは
platform :ios, '7.0'
source 'https://github.com/CocoaPods/Specs.git'
target ‘googlePlace’ do
pod 'GoogleMaps'
pod 'GooglePlaces'
end
私Podfile
です
最後に、私のapikeyはGoogleコンソールのiOSアプリケーションに設定されています。
何が問題ですか?
あなたがそうであるように私はまったく同じ問題を抱えているが、私は私の要求の制限は今朝、それがうまく働いたので、私は最大昨日それを発見するために来ています。今問題を繰り返していますが、GoogleマップとGoogleプレイスの両方に新しいAPIキーがあります。基本的に私は前述の例と同じことをしようとしています:現在の場所を取得する。別のバージョンに何度もアップグレードしても、この問題は解決しないので、私のポッドの更新は私のためには機能しません。 – Alex7