             
             for item in addresses {
                 let coordinates = item["coordenadas"] as? [String: Any]
-                let latitudeString = coordinates?["y"] as? String
-                let longitudeString = coordinates?["x"] as? String
-                let latitude = latitudeString != nil ? Double(latitudeString!) : nil
-                let longitude = longitudeString != nil ? Double(longitudeString!) : nil
+                let latitude = USIGNormalizador.parseCoordinate(fromDict: coordinates, key: "y")
+                let longitude = USIGNormalizador.parseCoordinate(fromDict: coordinates, key: "x")
                 
                 let address = USIGNormalizadorAddress(
                     address: (item["direccion"] as! String).trimmingCharacters(in: .whitespacesAndNewlines).uppercased(),

        return storyboard.instantiateViewController(withIdentifier: "USIGNormalizador") as! USIGNormalizadorController
    }
    
    public class func search(query: String, excluding: String? = nil, maxResults: Int = 10, completion: @escaping ([USIGNormalizadorAddress]?, USIGNormalizadorError?) -> Void) {
        let request = USIGNormalizadorAPI.normalizar(direccion: query, excluyendo: excluding, geocodificar: true, max: maxResults)
        
        api.request(request) { response in

import Moya

public class USIGNormalizador {
    
    // MARK: - Public API
    
    public static let api: MoyaProvider<USIGNormalizadorAPI> = MoyaProvider<USIGNormalizadorAPI>()
    
    public class func searchController() -> USIGNormalizadorController {
