         if addressTxt.text!.isEmpty && self.locationSwitch.isOn == false{
             self.displayAlert("Error", message: "Please provide a location.")
         } else{
-                self.yelpSearch()
+            self.yelpSearch()
         }
         locationManager.stopUpdatingLocation()
     }
-
+    
     
     override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
         self.view.endEditing(true)
     }
-
+    
     func getToken() {
         let url: String = "https://api.yelp.com/oauth2/token"
         let params: [String: Any] =

    }
    
    func getHours() {
        self.yelpBusinessDetails(id: id)
    }
    


    func displayAlert(_ title:String, message:String) {
        self.alertController = UIAlertController(title:title, message:message, preferredStyle: UIAlertControllerStyle.alert)
        let okAction = UIAlertAction(title: "OK", style: UIAlertActionStyle.default) { (action:UIAlertAction) in

    
    @IBOutlet weak var addressTxt: UITextField!
    @IBOutlet weak var openSwitch: UISwitch!
    
    @IBOutlet weak var locationSwitch: UISwitch!
    
    override func viewDidLoad() {
