         self.presentViewController(controller, animated: true, completion: nil)
     }
     
-    func setSpotsData(controller:MapViewController){
-        controller.spots = sightseengSpots
-        //controller.toLocation = CLLocationCoordinate2D(latitude: SpotManager.targetSpot.latitude, longitude: SpotManager.targetSpot.longitude)
-        //controller.fromLocation = CLLocationCoordinate2D(latitude: SpotManager.startSpot.latitude, longitude: SpotManager.startSpot.longitude)
-    }
 }
 
 

            locationManager.requestAlwaysAuthorization()
        }
        
        let spots = SpotManager.sharedController.toiletSpotRepository.spots
        for spot in spots {
            print(spot.name)
        }
        
        let results2 = CSVManager.sightseeingData()
        for result in results2 {
            sightseengSpots.append(SightseeingSpot(result: result))
            print(sightseengSpots.last?.name)
        }
        
        let header = SearchHeaderView()
        header.setup(CGRectMake(0, UIApplication.sharedApplication().statusBarFrame.height, self.view.bounds.width, 50))
        self.view.addSubview(header)
        
        searchButton.layer.cornerRadius = 60
    }
    
    override func viewWillAppear(animated: Bool) {

        let storyboard = UIStoryboard(name: "MapView", bundle: nil)
        let controller = storyboard.instantiateInitialViewController() as! MapViewController

        controller.spots = SpotManager.sharedController.sightseeingSpotRepository.spots
    
        var viaLocations: [CLLocationCoordinate2D] = []
        if let spot = SpotManager.startSpot {
