Created
June 26, 2012 14:25
-
-
Save tyre/2996086 to your computer and use it in GitHub Desktop.
clojure.lang.Symbol cannot be cast to java.lang.String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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