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)
MultiGeocoder.geocode(address).ll.split(',').collect(&:to_f)
2011-02-23 21:09:48 +00:00
end
end