The operation couldn’t be completed. An internal error occurred in the Places API library. If you believe this error represents a bug, please file a report using the instructions on our community and support page (https://developers.google.com/places/support).
I am getting this error. I was able to work for some hours . Nothing changed in code. After some time i am getting the above error for every request
Some code in iOS i used
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSString *text = [textField text];
text = [text stringByReplacingCharactersInRange:range withString:string];
if (text.length>0) {
footerView.hidden = NO;
[footerView startAnimating];
}else {
[self removeDropDown];
return YES;
}
[_fetcher sourceTextHasChanged:text];
return YES;
}
Delegate methods
- (void)didAutocompleteWithPredictions:(NSArray *)predictions {
resultsArray = [[NSMutableArray alloc]init];
NSMutableArray *titlesArray = [[NSMutableArray alloc]init];
for (GMSAutocompletePrediction *prediction in predictions) {
[titlesArray addObject:[prediction.attributedPrimaryText string]];
[resultsArray addObject:prediction];
}
if (self.searchTextField.text.length>0) {
if (dropDown == nil) {
dropDown = [[PTDropDownView alloc] showDropDown:self.searchParentView withheight:autoCompleteViewMaxHeight withItems:titlesArray animationDirection:DirectionDown];
dropDown.delegate = self;
} else {
dropDown.itemsArray = titlesArray;
[dropDown.tableView reloadData];
}
dropDown.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.4];
[self adjustDropDownFrame];
[footerView stopAnimating];
}
NSLog(@"fetched count = %d",resultsArray.count);
}
- (void)didFailAutocompleteWithError:(NSError *)error {
NSLog(@"%@",[NSString stringWithFormat:@"%@", error.localizedDescription]);
[self removeDropDown];
}