SPGooglePlacesAutocomplete
SPGooglePlacesAutocomplete copied to clipboard
Using onlyObject with the results from geocodeAddressString is faulty
CLGeocoder geocodeAddressString: completionHandler: may return more than one placemark, which resolveEstablishmentPlaceToPlacemark and resolveGecodePlaceToPlacemark are not anticipating. They use onlyObject to get a placemark out of the results, but that will return nil if the placemarks array contains more than 1 item. The better approach is to always select the 1st placemark, regardless of how many are returned.