Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/geo_units/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#parse_dms(options = {}) ⇒ Object
29 30 31 |
# File 'lib/geo_units/core_ext.rb', line 29 def parse_dms = {} GeoUnits::Converter::Dms.parse_dms self, end |
#to_lat ⇒ Object
37 38 39 |
# File 'lib/geo_units/core_ext.rb', line 37 def to_lat self.match(/[N|S]/) ? self.to_i : nil end |
#to_lng ⇒ Object
33 34 35 |
# File 'lib/geo_units/core_ext.rb', line 33 def to_lng self.match(/[E|W]/) ? self.to_i : nil end |