class String

Public Instance Methods

parse_dms(options = {}) click to toggle source
# File lib/geo_units/core_ext.rb, line 29
def parse_dms options = {}
  GeoUnits::Converter::Dms.parse_dms self, options
end
to_lat() click to toggle source
# File lib/geo_units/core_ext.rb, line 37
def to_lat
  self.match(/[N|S]/) ? self.to_i : nil
end
to_lng() click to toggle source
# File lib/geo_units/core_ext.rb, line 33
def to_lng
  self.match(/[E|W]/) ? self.to_i : nil
end