我正在开发应用程序,为一群客户在世界地图上创建针脚。我使用谷歌位置服务让所有的客户坐标,你可以看到下面的示例:Google阻止AJAX服务?
NSString *locationString = [NSString stringWithFormat:@"%.6f,%.6f"];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://ajax.googleapis.com/ajax/services/search/local?v=1.0&rsz=8&sll=%@&q=%@", locationString, [cusName stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
不过我是用一个计划,为约1000个客户这样做,然后我被封锁谷歌。
然后,我意识到这是不应该被谷歌允许: https://developers.google.com/errors/ “我们接到的自动请求,如刮和预取自动请求被禁止,所有的请求必须由作为最终用户的结果。行动“
在我看来,我被阻止提出任何更多的请求,即使是单个客户。
有谁知道,我该怎么做才能解锁我?
非常感谢!