             
             if let error = error {
                 
-                println("反编码失败")
+                println("出发地反编码失败")
+                return
+            }
+            
+            if sourcemarks?.count == 0 {
+                
+                println("没有查询到出发地")
                 return
             }
             

        
        mapLauncher                     = ASMapLauncher()
        mapView.delegate                = self                                    // 地图代理
        request.transportType           = MKDirectionsTransportType.Automobile    // 路径类型汽车
        request.requestsAlternateRoutes = false                                   // 设置是否搜索多条线路
        
        // 反编码出CLPlacemark对象


    @IBOutlet weak var mapView: MKMapView!
    
    private let sourceName      = "高安市新宇小区"
    private let destinationName = "高安中学"
    
    private let geocoder        = CLGeocoder()                          // 反编码类
    private let request         = MKDirectionsRequest()                 // 导航请求
    private let transportType   = MKDirectionsTransportType.Automobile  // 当前导航类型
    
    private var sourceAnnotation        : MKPointAnnotation!    // 出发地标注
    private var destinationAnnotation   : MKPointAnnotation!    // 目的地标注
