If the response from Google is a little longer, the didReceiveData method is called multiple times. In that case, one should append to the already received data. This was leading to errors in my JSON parsing.
Also removing an unused CLLocationManager instance.
If the response from Google is a little longer, the didReceiveData method is called multiple times. In that case, one should append to the already received data. This was leading to errors in my JSON parsing.
Also removing an unused
CLLocationManager
instance.