A simple republishing of a gem to calculate maidenhead gridsquares by gps coordinates.
bundle add maiden
gem install maiden
gem build maiden.gemspec
require 'maiden'
gridsquare = GRID.to_grid(latitude, longitude)
latitude, longitude = GRID.to_gps(gridsquare)
GRID.keys
GRID[gridsquare]
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.