]> git.openstreetmap.org Git - rails.git/blobdiff - lib/short_link.rb
Update html5shiv to 3.7.3
[rails.git] / lib / short_link.rb
index 69634cea54efb4c4a6c82fc7b8cca575c6183cf7..ddf37b67acf02bc9a51ae5cdac5f62ea5dae6c4f 100644 (file)
@@ -55,7 +55,7 @@ module ShortLink
   # given a location and zoom, return a short string representing it.
   def self.encode(lon, lat, z)
     code = interleave_bits(((lon + 180.0) * 2**32 / 360.0).to_i,
-                           ((lat +  90.0) * 2**32 / 180.0).to_i)
+                           ((lat + 90.0) * 2**32 / 180.0).to_i)
     str = ""
     # add eight to the zoom level, which approximates an accuracy of
     # one pixel in a tile.