                             self.processRequestError(error: requestError, requestUrl: requestUrl)
                         }
         )
-        
+
         let payload = DestinationSearchedEventPayload(destination: endPlace.name,
                                                       requestUrl: requestUrl,
                                                       stopType: nil)
         Analytics.shared.log(payload)
     }
-    
+
     func processRouteJson(routeJSON: JSON, requestUrl: String) {
         JSONFileManager.shared.saveJSON(routeJSON, type: .routeJSON)
-        
+
         Route.parseRoutes(in: routeJSON, from: self.searchFrom?.name, to: self.searchTo?.name, { (parsedRoutes, error) in
             self.routes = parsedRoutes
             if let error = error {


    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        if #available(iOS 11, *) {
            addHeightToDatepicker(20) // add bottom padding to date picker for iPhone X
        }

            if let result = busStop {
                searchFrom = result
                routeSelection.fromSearchbar.setTitle(result.name, for: .normal)
            } else if let result = placeResult {
                searchFrom = result
                routeSelection.fromSearchbar.setTitle(result.name, for: .normal)
            }
