 		didSet {
 			if let location = location {
 				searchBar.text = location.name
+			} else {
+				searchBar.text = ""
 			}
 		}
 	}
 	
 	static let SearchTermKey = "SearchTermKey"
 	
+	let geocoder = CLGeocoder()
 	var localSearch: MKLocalSearch?
 	var searchTimer: NSTimer?
 	

		
		mapView.delegate = self
		
		// search
		navigationItem.titleView = searchBar
		definesPresentationContext = true
	}
}


	
	lazy var results: LocationSearchResultsViewController = {
		let results = LocationSearchResultsViewController()
		results.onSelectLocation = { [weak self] in self?.selectedLocation($0) }
		return results
	}()
	
