     
     private var didDraw = false
     private func drawRoute() {
-        guard !didDraw else { return }
+        guard !didDraw && coords.count >= 2 else { return }
         didDraw = true
 
         let routeFeature = MGLPolylineFeature(coordinates: &coords, count: UInt(coords.count))

    /**
     The receiver’s delegate.
     */
    public var navigationDelegate: NavigationViewControllerDelegate?
    
    /**
     `voiceController` provides access to various speech synthesizer options.

    func navigationMapView(_ mapView: MGLMapView, didFinishLoading style: MGLStyle) {
        guard let showsTraffic = showsTraffic else { return }
        mapView.showsTraffic = showsTraffic
        drawRoute()
    }
}

