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

8 lines
151 B
Ruby
Raw Normal View History

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