Class: Jekyll::OpenStreetMap::LocationParser
- Inherits:
-
Object
- Object
- Jekyll::OpenStreetMap::LocationParser
- Defined in:
- lib/location_parser.rb
Class Method Summary collapse
Class Method Details
.parse(locStr) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/location_parser.rb', line 4 def self.parse(locStr) latLon = locStr.split(",").map {|val| val.strip} { :lat => latLon[0].to_f, :lng => latLon[1].to_f } end |