 extension CLLocation {
     public convenience init(location:CLLocationCoordinate2D) {
         self.init(latitude: location.latitude, longitude: location.longitude)
+    }
+    
+    func isValid() -> Bool {
+        return self.coordinate.latitude != 0.0 && self.coordinate.longitude != 0.0
     }
 }
 

    var distanceMiles:Double {
        return metersToMiles(distance)
    }
}

extension MKCoordinateRegion {

        })
        return minTravelTime
    }
}

extension CLPlacemark {
    func postalAddressFromAddressDictionary() -> CNMutablePostalAddress {
        let postalAddress = CNMutablePostalAddress()
        
        if let addressDictionary = addressDictionary {
            postalAddress.street = addressDictionary["Street"] as? String ?? ""
            postalAddress.state = addressDictionary["State"] as? String ?? ""
            postalAddress.city = addressDictionary["City"] as? String ?? ""
            postalAddress.country = addressDictionary["Country"] as? String ?? ""
            postalAddress.postalCode = addressDictionary["ZIP"] as? String ?? ""
        }
        
        return postalAddress
    }
    
    func localizedStringForAddressDictionary() -> String {
        return CNPostalAddressFormatter.stringFromPostalAddress(postalAddressFromAddressDictionary(), style: .MailingAddress)
    }
}

