Source

clojure-geohash / src / geohash / core.clj

Diff from to

src/geohash/core.clj

         lon-err (/ (- (:maxlon bbox) (:minlon bbox)) 2)]
     {:lat lat :lon lon :lat-err lat-err :lon-err lon-err}))
 
-(defn encode [lat lon prec]
+(defn encode 
+  ([lat lon] (encode lat lon 9))
+  ([lat lon prec]
   (do-encode lat lon prec 
-    (struct geocode-data 180 -180 90 -90 true 0 0 "")))
+    (struct geocode-data 180 -180 90 -90 true 0 0 ""))))