lib/geocoder/results/maxmind.rb in geocoder-1.4.9 vs lib/geocoder/results/maxmind.rb in geocoder-1.5.0
- old
+ new
@@ -85,14 +85,9 @@
def coordinates
[data_hash[:latitude].to_f, data_hash[:longitude].to_f]
end
- def address(format = :full)
- s = state_code.to_s == "" ? "" : ", #{state_code}"
- "#{city}#{s} #{postal_code}, #{country_code}".sub(/^[ ,]*/, "")
- end
-
def city
data_hash[:city_name]
end
def state # not given by MaxMind