             
             let formattedAddrs = locationDict.objectForKey("formatted_address") as NSString
             
-            var geometry = locationDict.objectForKey("geometry") as NSDictionary
-            var location = geometry.objectForKey("location") as NSDictionary
-            var lat = location.objectForKey("lat") as Double
-            var lng = location.objectForKey("lat") as Double
+            let geometry = locationDict.objectForKey("geometry") as NSDictionary
+            let location = geometry.objectForKey("location") as NSDictionary
+            let lat = location.objectForKey("lat") as Double
+            let lng = location.objectForKey("lat") as Double
             
             
             self.latitude = lat.description

    }
    
    
    
    private override init(){
        
        super.init()

            
            if(error){
                
                if(type == GeoCodingType.Geocoding){
                    
                    self.geocodingCompletionHandler!(address: nil,error: error.localizedDescription)
                    
                }else{
                    
                    self.reverseGeocodingCompletionHandler!(address: nil,error: error.localizedDescription)
                    
                }
            }else{
                
                let dataAsString: NSString = NSString(data: data, encoding: NSUTF8StringEncoding)
                
                // Convert the retrieved data in to an object through JSON deserialization
                var err: NSError
                let jsonResult: NSDictionary = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: nil) as NSDictionary
                
                var status = jsonResult.valueForKey("status") as NSString
                
                if((status.lowercaseString as NSString).isEqualToString("ok")){
                    
                    let address = AddressParser()
                    
                    address.parseGoogleLocationData(jsonResult)
                    
                    let addressDict = address.addressDictionary()
                    
                    if(type == GeoCodingType.Geocoding){
                        
                        self.geocodingCompletionHandler!(address: addressDict,error: nil)
                        
                    }else{
                        
                        self.reverseGeocodingCompletionHandler!(address: addressDict,error: nil)
                    }
                    
                }else{
                    if(type == GeoCodingType.Geocoding){
                        
                        self.geocodingCompletionHandler!(address: nil,error: "invalid address")
                        
                    }else{
                        
                        self.reverseGeocodingCompletionHandler!(address: nil,error: "invalid latitude")
                    }
                    
                }
                
            }
            }
        )
        
    }
}


