             return nil
         }
         
-        let identifier = "MyPin"
-
         if annotation.isKind(of: MKUserLocation.self) {
             return nil
         }
 
+        let identifier = "MyPin"
         let view: MKPinAnnotationView
         if let annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier) as? MKPinAnnotationView {
             view = annotationView

    }
    
    public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
        if !direction {
            return
        }

            locationManager.requestWhenInUseAuthorization()
        }
    }
    
    public func end() {
        // Ends chaining
    }
