                (-> (simple-otp-request-cached)
                    otp-response->itinerary
                    itinernary->add-text2go
+                   itinernary->add-route-url
+                   itinernary->add-route-span
                    )))
 
 (defresource ws-otp-pass-through [otp-instance route-params params request]

(defn itinernary->add-text2go
  "add text2go codes into the stopCode field of an OTP Itinerary"
  [itin]
  (let [add-code (fn [i path]
                   (assoc-in i
                             (concat path [:stopCode])
                             (anaheim-stop-text2go 
                               (get-in i (concat path [:stopId :id])))))
        walk-add-code (fn [i]
                        (clojure.walk/postwalk
                          (fn [x]
                            (if (:stopId x)
                              (assoc x
                                     :stopCode
                                     (anaheim-stop-text2go
                                       (get-in x [:stopId :id])))
                              x))
                          i))]
    (-> itin
        (add-code [:from]) 
        (add-code [:to])
        (walk-add-code)
        )))

(defresource ws-echo [echo]
  :last-modified  #inst "2015-04-09"

      (first (filter #(= (:route_id %) route-id) routes )))))

(defn anaheim-route-span [route-id day-in-la]
  ;; should we do any caching here??
  (gtfs-api-routes-span-request route-id day-in-la))

(defn anaheim-stop-text2go [stop-id]
  (let [stops (load-anaheim-stops!!)]
