使用GMSReverseGeocodeResponse解析地址时,出现错误com.google.HTTPStatus代码400 [英] Getting error com.google.HTTPStatus code 400 while resolving the address using GMSReverseGeocodeResponse
问题描述
我正在尝试使用[[GMSGeocoder geocoder] reverseGeocodeCoordinate:{}];解析地址(尝试将纬度和经度转换为可读地址).我没有收到任何响应数据并出现以下错误
I am trying to resolve the address (trying to convert latitude & longitude to readable address) using [[GMSGeocoder geocoder] reverseGeocodeCoordinate:{}];. I am not getting any response data and following error
ClientParametersRequest失败,剩余3次尝试(0 vs 6).错误Domain = com.google.HTTPStatus代码= 400操作无法完成.(com.google.HTTPStatus错误400.)" UserInfo = 0x17e080b0 {data = {长度= 145,容量= 256,字节= 0x3c48544d4c3e0a3c484541443e0a3c54. .. 3c2f48544d4c3e0a}}
ClientParametersRequest failed, 3 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x17e080b0 {data={length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
推荐答案
我遇到了同样的问题.我的问题是未启用iOS专用的Google Maps SDK:/
I had the same issue. My problem was the Google Maps SDK for iOS wich was not enabled :/
因此请小心API密钥(以及相关的捆绑软件ID),并检查是否激活了正确的API.
So be carefull of the API key (and the associated bundle ID) and check if the right API is activated.
这篇关于使用GMSReverseGeocodeResponse解析地址时,出现错误com.google.HTTPStatus代码400的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!