     }
     
     
-    func getRyukyuLoopRoutes() {
-        
-        let requestURL = createRequestRyukyuURL()
+    func getRoutes(_ start:CLLocationCoordinate2D, _ end:CLLocationCoordinate2D) {
+        
+        let requestURL = createRequeseURL(start, end)
         print(requestURL)
         Alamofire.request(requestURL).responseJSON { response in
         

                
                let json = JSON(response.result.value!)
                if json["status"].stringValue == "OK" {
                    
                    
                    // 検索ルート候補のすべてを取得
                    let routes = json["routes"].arrayValue

        locationManager.desiredAccuracy = kCLLocationAccuracyBest
        
        // 現在位置からどれぐらい動いたら更新するか. 単位はm
        locationManager.distanceFilter = 1
        locationManager.delegate = self
        locationManager.startUpdatingLocation()
    }
