Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Jul 31, 2022
1 parent 12a18d2 commit a2833ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion spec/geohash_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ describe Geohash do
Geohash.encode(40.7178486, -74.0002041).should eq("dr5rsh6wwm0")
end


it "#decode" do
Geohash.decode("gbsuv").should eq({lat: 48.669, lng: -4.329})
end
Expand Down
2 changes: 1 addition & 1 deletion src/geohash.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Geohash
#
# ```
# Geohash.encode(52.205, 0.119, 7) # => "u120fxw"
# Geohash.encode(48.669, -4.329) # => "gbsuv"
# Geohash.encode(48.669, -4.329) # => "gbsuv"
# ```
def encode(latitude : Float64, longitude : Float64, precision : Int32? = nil)
if precision.nil?
Expand Down

0 comments on commit a2833ec

Please sign in to comment.