I have a function to obtain the coordinates according to address.
I have to declare a variable as dictionary
to transform a result into json.
var error: NSError?
let dictionary: Dictionary<NSObject, AnyObject> = NSJSONSerialization.JSONObjectWithData(geocodingResultsData!, options: NSJSONReadingOptions.MutableContainers, error: &error) as Dictionary<NSObject, AnyObject>
The error that returns to me is the following
Extra argument 'error' in call
I must say that I am guiding myself with the Google Maps document
so that piece of code got it from there so I do not know what the error can be.