 class PlaceDetailViewController: UIViewController {
 
     weak var dataSource: PlacesProvider?
-    weak var locationProvider: LocationProvider!
+    let locationProvider: LocationProvider
 
     lazy var scrollView: UIScrollView = {
         let scrollView = UIScrollView()


        // The VCs in this class handle like a linked list so we can just update the prev, middle,
        // and next nodes, and the view will continue working as usual.
        let userLocation = locationProvider?.getCurrentLocation()
        currentCardView.updateUI(forPlace: placeToOpen, withUserLocation: userLocation)

        let nextIndex = index + 1

    }

    func placeDetailsCardView(cardView: PlaceDetailsCardView, directionsRequestedTo place: Place, by transportType: MKDirectionsTransportType) {
        guard let coord = locationProvider.getCurrentLocation()?.coordinate else { return }
        OpenInHelper.openRoute(fromLocation: coord, toPlace: place, by: transportType, analyticsStr: AnalyticsEvent.DIRECTIONS, errStr: "unable to open travel directions")
    }
}
