class Geocoder::Result::PcMiler

def address(format=:unused)

def address(format=:unused)
  [street, city, state, postal_code, country]
  .map { |i| i == '' ? nil : i }
  .compact
  .join(', ')
end

def address_data

def address_data
  data["Address"] || {}
end

def city

def city
  address_data["City"]
end

def coordinates

def coordinates
  coords = data["Coords"] || {}
  [coords["Lat"].to_f, coords["Lon"].to_f]
end

def country

def country
  address_data["CountryFullName"]
end

def country_code

def country_code
  address_data["Country"]
end

def postal_code

def postal_code
  address_data["Zip"]
end

def state

def state
  address_data["StateName"]
end

def state_code

def state_code
  address_data["State"]
end

def street

def street
  address_data["StreetAddress"]
end