Skip to content

Instantly share code, notes, and snippets.

@tyre
Created June 26, 2012 14:25
Show Gist options
  • Save tyre/2996086 to your computer and use it in GitHub Desktop.
Save tyre/2996086 to your computer and use it in GitHub Desktop.
clojure.lang.Symbol cannot be cast to java.lang.String
(defpage "/boundary" {:keys [latitude longitude distance]}
(resp/json (apply LatLong/bounding-box
(
(fn [a b c]
(map read-string '(a b c) ))
latitude longitude distance)))
)
; LatLong/bounding-box takes three arguments which should be numbers (though not necessarily ints)
; latitude, longitude, and distance are strings coming in and need to be numbers passed in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment