         }
     }
     
+    
+    private func updateSearchBarText(forSearch search: PlaceSearch) {
+        if (isDefaultSearch(search)) {
+            searchBar?.text = nil
+        } else {
+            searchBar?.text = search.string ?? search.localizedDescription
+        }
+        
+    }
+    
+    private func updateSearchBarText() {
+        guard let search = currentSearch else {
+            searchBar?.text = nil
+            return
+        }
+        updateSearchBarText(forSearch: search)
+    }
+
+    
     @IBAction func toggleSearchFilterDropDown(_ sender: Any) {
         self.isSearchFilterDropDownShowing = !isSearchFilterDropDownShowing
     }

    func zoomAndPanMapView(toLocation location: CLLocation) {
        let region = MKCoordinateRegionMakeWithDistance(location.coordinate, 5000, 5000)
        mapRegion = region
        performDefaultSearchIfNecessary(withRegion: region)
    }
    
    var panMapToNextLocationUpdate = true

            }
            
            updateSearchFilterTitle()
            updateSearchBarText(forSearch: search)

            performSearch(search)
            
            switch search.type {
