4
votes

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 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}}

1
Are you using a valid Google Maps iOS API key? - not_a_bot
Also, make sure you enable the GoogleMap SDK for iOS in the Google APIs Console as seen in this answer. - not_a_bot
i have a valid API key. And also enabled the GoogleMap SDK for iOS. - Shrinivas Kulkarni
@not_a_bot is there any thing else I have to look into, where I may be wrong? - Shrinivas Kulkarni
It's hard to say without seeing some code. Is there an example that you're following? Which other APIs have you enabled in the APIs console? Are you seeing this on a simulator or an actual device? Also, which version of the iOS SDK are you using? - not_a_bot

1 Answers

11
votes

I had the same issue. My problem was the Google Maps SDK for iOS wich was not enabled :/

So be carefull of the API key (and the associated bundle ID) and check if the right API is activated.