     func initMapView(){
         // WGS84の座標系でカメラを設定. latitude: 緯度, longitude: 経度
         let camera = GMSCameraPosition.camera(withLatitude: ryukyuLatitude, longitude: ryukyuLongitude, zoom: zoomLevel)
-        
+
+   
         // GoogleMapの初期化
         //self.mapView = GMSMapView.map(withFrame: .zero, camera: camera)
         self.mapView.camera = camera

            "origin=\(origin)",
            "destination=\(destination)",
            "alternatives=\(alternatives)",
            "mode=\(mode)",
            "waypoints=\(waypoints)"]
            .joined(separator: "&")
        
        // URLの結合


class MapConroller: UIViewController, CLLocationManagerDelegate,GMSMapViewDelegate {
    let locationManager = CLLocationManager()
    var routePath = GMSMutablePath()
    @IBOutlet var mapView: GMSMapView!
    
    var lineMeToGoal = GMSPolyline()

    var mylocation = CLLocationCoordinate2D()
    var goal = CLLocationCoordinate2D()
    // WGS84の座標系での琉球大学の位置(緯度, 経度)
    let ryukyuLatitude = 26.253726
    let ryukyuLongitude = 127.766949
    let zoomLevel:Float = 17
    
    
    var score:UInt64 = 0
    
    /** override vieDidLoad()
     * Viewの初期化,locationManagerの初期化. GoogleMapをMap.storyboardに表示する.
     */
    override func viewDidLoad() {
        super.viewDidLoad()
        goal = CLLocationCoordinate2D.init(latitude: ryukyuLatitude, longitude: ryukyuLongitude)
        initMapView()
        setLocateManager()
        ryukyuLocationMarker()
        
    }
    
