adopt-a-hydrant/app/models/address.rb

8 lines
153 B
Ruby
Raw Normal View History

2011-02-23 21:09:48 +00:00
class Address
include Geokit::Geocoders
def self.geocode(address)
2014-04-01 08:15:29 +00:00
MultiGeocoder.geocode(address).ll.split(',').collect { |s| s.to_f }
2011-02-23 21:09:48 +00:00
end
end