     }
 
     func placeDetailsCardView(cardView: PlaceDetailsCardView, directionsRequestedTo place: Place, by transportType: MKDirectionsTransportType) {
-        guard let coord = locationProvider?.getCurrentLocation()?.coordinate else { return }
+        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")
     }
 }

    }

    fileprivate func dequeuePlaceCardView(forPlace place: Place) -> PlaceDetailsCardView {
        let newView = PlaceDetailsCardView(place: place, userLocation: locationProvider?.getCurrentLocation())
        newView.imageCarousel.delegate = self
        newView.delegate = self
        newView.alpha = cardFadeOutAlpha

class PlaceDetailViewController: UIViewController {

    weak var dataSource: PlacesProvider?
    let locationProvider: LocationProvider

    lazy var scrollView: UIScrollView = {
        let scrollView = UIScrollView()
