class Geocoder::Result::Base
def address(format = :full)
through this method.
return properly formatted addresses and those should be funneled
format and will return incorrect results for most countries. Some APIs
This default implementation dumbly follows the United States address
A string in the given format.
#
def address(format = :full) if state_code.to_s != "" s = ", #{state_code}" elsif state.to_s != "" s = ", #{state}" else s = "" end "#{city}#{s} #{postal_code}, #{country}".sub(/^[ ,]*/, '') end