Module: Z4grid

Defined in:
lib/z4grid.rb,
lib/z4grid/version.rb

Defined Under Namespace

Classes: Error, Maidenhead

Constant Summary collapse

VERSION =
"0.1.1"
COMMIT =
`git log --format="%H" -n 1`.strip

Class Method Summary collapse

Class Method Details

.to_grid(lat, lon, *p) ⇒ Object



127
128
129
# File 'lib/z4grid.rb', line 127

def self.to_grid lat,lon,*p
  return Maidenhead.to_maidenhead(lat,lon,p[0] || 5)
end

.to_latlon(m) ⇒ Object



130
131
132
# File 'lib/z4grid.rb', line 130

def self.to_latlon m
  return Maidenhead.to_latlon(m)
end