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

8 lines
153 B
Ruby

class Address
include Geokit::Geocoders
def self.geocode(address)
MultiGeocoder.geocode(address).ll.split(',').collect { |s| s.to_f }
end
end