File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ def full?(code)
4444 # @return [Array<Integer, Integer>] with the latitude and longitude integer
4545 # values.
4646 def location_to_integers ( latitude , longitude )
47- lat_val = ( latitude * PAIR_CODE_PRECISION * LAT_GRID_PRECISION ) . floor
4847 lat_val = ( latitude * PAIR_CODE_PRECISION * LAT_GRID_PRECISION ) . floor
4948 lat_val += 90 * PAIR_CODE_PRECISION * LAT_GRID_PRECISION
5049 if lat_val . negative?
@@ -53,7 +52,6 @@ def location_to_integers(latitude, longitude)
5352 lat_val = 2 * 90 * PAIR_CODE_PRECISION * LAT_GRID_PRECISION - 1
5453 end
5554 lng_val = ( longitude * PAIR_CODE_PRECISION * LNG_GRID_PRECISION ) . floor
56- lng_val = ( longitude * PAIR_CODE_PRECISION * LNG_GRID_PRECISION ) . floor
5755 lng_val += 180 * PAIR_CODE_PRECISION * LNG_GRID_PRECISION
5856 if lng_val . negative?
5957 # Ruby's % operator differs from other languages in that it returns
You can’t perform that action at this time.
0 commit comments