Read CSV

require 'csv'

CSV.foreach("foo.csv",encoding:"cp932",col_sep:"\t") do |row|
  puts row
end

Geo3x3

require './geo_3x3'

lat, lng = 31.908714674017606, 131.42030837301505
level = 18
puts "#{lat},#{lng}"
geo = Geo3x3.encode(lat,lng,level)
puts geo
p Geo3x3.decode(geo)
  • https://geo3x3.com/
  • https://twitter.com/YoseiIto/status/1363010005713084418?s=20