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

8 lines
146 B
Ruby
Raw Normal View History

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