 (defn get-end-location [transit-directions]
   (-> transit-directions :directions :routes (get 0) :legs (get 0) :end_location))
 
+(defn transit-step-view [transit-step owner]
+  (reify
+    om/IRender
+    (render [_]
+      (html [:li
+             [:b (:instructions transit-step)]
+             [:i (str " (" (-> transit-step :distance :text) " - " (-> transit-step :duration :text) ")")]
+             (when (= "TRANSIT" (:travel_mode transit-step))
+               [:div
+                (-> transit-step :transit :departure_stop :name) " - "
+                (-> transit-step :transit :arrival_stop :name)])]))))
 
 (defn transit-directions-view [transit-directions owner]
   (reify

    ;; Perhaps better to put it in a different component...
    om/IDidUpdate
    (did-update [_ prev-props _]
      (when-not (journey-same? journey (:journey prev-props))
        (update-journey-plan owner)
        (router/go-to-hash

                 (:start_name transit-directions)
                 [:div {:class "sub header"} (:end_name transit-directions)]]]
               [:ul {:class "transit-steps"}
                (om/build-all transit-step-view (:steps directions))]])))))

(defn transit-view [transit-journey owner]
  (reify
