zillow4r 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/Gemfile +18 -0
  2. data/Gemfile.lock +23 -0
  3. data/README.md +69 -0
  4. data/Rakefile +53 -0
  5. data/VERSION +1 -0
  6. data/lib/zillow4r.rb +49 -0
  7. data/lib/zillow4r/api.rb +25 -0
  8. data/lib/zillow4r/api/base.rb +5 -0
  9. data/lib/zillow4r/api/chart.rb +12 -0
  10. data/lib/zillow4r/api/comps.rb +13 -0
  11. data/lib/zillow4r/api/deep_comps.rb +13 -0
  12. data/lib/zillow4r/api/deep_search_results.rb +12 -0
  13. data/lib/zillow4r/api/demographics.rb +38 -0
  14. data/lib/zillow4r/api/region_chart.rb +12 -0
  15. data/lib/zillow4r/api/region_children.rb +14 -0
  16. data/lib/zillow4r/api/search_results.rb +12 -0
  17. data/lib/zillow4r/api/updated_property_details.rb +52 -0
  18. data/lib/zillow4r/api/zestimate.rb +15 -0
  19. data/lib/zillow4r/models.rb +189 -0
  20. data/test/fixtures/chart.xml +19 -0
  21. data/test/fixtures/comps.xml +189 -0
  22. data/test/fixtures/deep_comps.xml +536 -0
  23. data/test/fixtures/deep_search_results.xml +102 -0
  24. data/test/fixtures/demographics.xml +849 -0
  25. data/test/fixtures/region_chart.xml +18 -0
  26. data/test/fixtures/region_children.xml +868 -0
  27. data/test/fixtures/search_results.xml +91 -0
  28. data/test/fixtures/updated_property_details.xml +75 -0
  29. data/test/fixtures/zestimate.xml +93 -0
  30. data/test/test_helper.rb +26 -0
  31. data/test/unit/chart_test.rb +18 -0
  32. data/test/unit/comps_test.rb +50 -0
  33. data/test/unit/deep_comps_test.rb +50 -0
  34. data/test/unit/deep_search_results_test.rb +28 -0
  35. data/test/unit/demographics_test.rb +39 -0
  36. data/test/unit/region_chart_test.rb +18 -0
  37. data/test/unit/region_children_test.rb +41 -0
  38. data/test/unit/search_results_test.rb +28 -0
  39. data/test/unit/updated_property_details_test.rb +65 -0
  40. data/test/unit/zestimate_test.rb +52 -0
  41. data/zillow4r.gemspec +105 -0
  42. metadata +183 -0
@@ -0,0 +1,15 @@
1
+ module Zillow4r
2
+ module Api
3
+ class Zestimate < Zillow4r::Api::Base
4
+ int_point :zpid, "response zpid", :data
5
+ object_point :zestimate, "response zestimate", :data, Zillow4r::Zestimate
6
+ object_point :address, "response address", :data, Zillow4r::Address
7
+ object_point :links, "response links", :data, Zillow4r::Links
8
+
9
+ def self.path
10
+ "/webservice/GetZestimate.htm"
11
+ end
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,189 @@
1
+ module Zillow4r
2
+ module XmlSearchHelper
3
+ module ClassMethods
4
+ def data_point(method_name, definition, source, post_value = nil)
5
+ definition = Array(definition)
6
+ send(:define_method, method_name) do
7
+ value = instance_variable_get("@#{method_name}")
8
+ return value unless value.nil?
9
+
10
+ data = send(source)
11
+ return nil if data.nil?
12
+
13
+ value = find_attribute(definition, data)
14
+ return nil if value.nil? || value.empty?
15
+
16
+ if post_value
17
+ if post_value.respond_to?(:call)
18
+ value = post_value.call(value)
19
+ else
20
+ value = value.send(post_value).strip
21
+ end
22
+ end
23
+ instance_variable_set("@#{method_name}", value)
24
+ value
25
+ end
26
+ end
27
+
28
+ def int_point(method_name, definition, source)
29
+ data_point method_name, definition, source, lambda{|e| e.inner_text.to_i}
30
+ end
31
+
32
+ def float_point(method_name, definition, source)
33
+ data_point method_name, definition, source, lambda{|e| e.inner_text.to_f}
34
+ end
35
+
36
+ def text_point(method_name, definition, source)
37
+ data_point method_name, definition, source, :inner_text
38
+ end
39
+
40
+ def attribute_point(method_name, definition, source, attribute_name)
41
+ data_point method_name, definition, source, lambda{|e| attr = e.attribute(attribute_name.to_s).value}
42
+ end
43
+
44
+ def array_point(method_name, definition, source, klass)
45
+ data_point method_name, definition, source, lambda{|e| e.children.map{|c| klass.new(c)}}
46
+ end
47
+
48
+ def object_point(method_name, definition, source, klass)
49
+ data_point method_name, definition, source, lambda{|e| klass.new(e)}
50
+ end
51
+ end
52
+
53
+ def self.included(base)
54
+ base.extend(ClassMethods)
55
+ end
56
+
57
+ private
58
+
59
+ def find_attribute(definition, data)
60
+ return nil if data.nil?
61
+ return data if definition.empty?
62
+ definition = definition.dup
63
+ attribute = definition.shift
64
+ if attribute.is_a?(Hash)
65
+ new_data = data.children.detect{|e| attribute.all?{|k,v| child = e.children.detect{|c| c.name == k}; child.inner_text.strip == v}}
66
+ return find_attribute(definition, new_data)
67
+ else
68
+ # attribute is a String
69
+ return find_attribute(definition, data.search(attribute))
70
+ end
71
+ end
72
+ end
73
+
74
+ class Base
75
+ attr_reader :data
76
+ def initialize(xml_or_doc)
77
+ @data = xml_or_doc.is_a?(String) ?
78
+ Nokogiri::HTML(xml_or_doc) :
79
+ xml_or_doc
80
+ end
81
+ include Zillow4r::XmlSearchHelper
82
+ end
83
+
84
+ class Address < Zillow4r::Base
85
+ text_point :street, "street", :data
86
+ text_point :zipcode, "zipcode", :data
87
+ text_point :city, "city", :data
88
+ text_point :state, "state", :data
89
+ float_point :latitude, "latitude", :data
90
+ float_point :longitude, "longitude", :data
91
+ end
92
+
93
+ class Links < Zillow4r::Base
94
+ attr_reader :links
95
+ def initialize(xml)
96
+ super(xml)
97
+ @links = {}
98
+ @data.children.each do |e|
99
+ @links[e.name] = e.inner_text.strip
100
+ end
101
+ end
102
+
103
+ def [](name)
104
+ @links[name]
105
+ end
106
+ end
107
+
108
+ class Images < Zillow4r::Base
109
+ attr_reader :images
110
+ def initialize(xml)
111
+ super(xml)
112
+ @images = []
113
+ @data.children.each do |e|
114
+ @images << e.inner_text.strip
115
+ end
116
+ end
117
+
118
+ def [](index)
119
+ @images[index]
120
+ end
121
+ end
122
+
123
+ class Region < Zillow4r::Base
124
+ int_point :id, "id", :data
125
+ float_point :latitude, "latitude", :data
126
+ float_point :longitude, "longitude", :data
127
+
128
+ # may or may not be available
129
+ text_point :state, "state", :data
130
+ text_point :city, "city", :data
131
+ text_point :neighborhood, "neighborhood", :data
132
+ text_point :name, "name", :data
133
+ text_point :url, "url", :data
134
+ int_point :zindex, "zindex", :data
135
+ attribute_point :zindex_currency, "zindex", :data, "currency"
136
+ end
137
+
138
+ class Posting < Zillow4r::Base
139
+ text_point :status, "status", :data
140
+ text_point :agent_name, "agentname", :data
141
+ text_point :agent_profile_url, "agentprofileurl", :data
142
+ text_point :brokerage, "brokerage", :data
143
+ text_point :type, "type", :data
144
+ text_point :last_updated_date, "lastupdateddate", :data
145
+ text_point :external_url, "externalurl", :data
146
+ int_point :mls, "mls", :data
147
+ end
148
+
149
+ class Zestimate < Zillow4r::Base
150
+ int_point :amount, "amount", :data
151
+ attribute_point :amount_currency, "amount", :data, "currency"
152
+ text_point :last_updated, "last-updated", :data
153
+ int_point :value_change, "valuechange", :data
154
+ attribute_point :value_change_duration, "valuechange", :data, "duration"
155
+ attribute_point :value_change_currency, "valuechange", :data, "currency"
156
+
157
+ int_point :valuation_low, "valuationrange low", :data
158
+ attribute_point :valuation_low_currency, "valuationrange low", :data, "currency"
159
+ int_point :valuation_high, "valuationrange high", :data
160
+ attribute_point :valuation_high_currency, "valuationrange high", :data, "currency"
161
+
162
+ int_point :percentile, "percentile", :data
163
+ end
164
+
165
+ class Property < Zillow4r::Base
166
+ int_point :zpid, "zpid", :data
167
+ int_point :tax_assessment_year, "taxassessmentyear", :data
168
+ float_point :tax_assessment, "taxassessment", :data
169
+ int_point :year_built, "yearbuilt", :data
170
+ int_point :lot_size_sq_ft, "lotsizesqft", :data
171
+ int_point :finished_sq_ft, "finishedsqft", :data
172
+ float_point :bathrooms, "bathrooms", :data
173
+ int_point :bedrooms, "bedrooms", :data
174
+ text_point :last_sold_date, "lastsolddate", :data
175
+ int_point :last_sold_price, "lastsoldprice", :data
176
+ attribute_point :last_sold_currency, "lastsoldprice", :data, "currency"
177
+
178
+ object_point :address, "address", :data, Zillow4r::Address
179
+ object_point :zestimate, "zestimate", :data, Zillow4r::Zestimate
180
+ object_point :links, "links", :data, Zillow4r::Links
181
+ end
182
+
183
+ class ComparableProperty < Zillow4r::Property
184
+ def score
185
+ data.attribute("score").value.to_f
186
+ end
187
+ end
188
+
189
+ end
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <Chart:chart xmlns:Chart="http://www.zillow.com/vstatic/3/static/xsd/Chart.xsd">
3
+ <request>
4
+ <zpid>48749425</zpid>
5
+ <unit-type>percent</unit-type>
6
+ <width>300</width>
7
+ <height>150</height>
8
+ </request>
9
+ <message>
10
+ <text>Request successfully processed</text>
11
+ <code>0</code>
12
+ </message>
13
+ <response>
14
+ <url>http://www.zillow.com/app?chartDuration=1year&chartType=partner&height=150&page=webservice%2FGetChart&service=chart&showPercent=true&width=300&zpid=48749425</url>
15
+ </response>
16
+ </Chart:chart>
17
+ <!--
18
+ H:11 T:1ms S:311
19
+ -->
@@ -0,0 +1,189 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <Comps:comps xmlns:Comps="http://www.zillow.com/vstatic/3/static/xsd/Comps.xsd">
3
+ <request>
4
+ <zpid>48749425</zpid>
5
+ <count>5</count>
6
+ </request>
7
+ <message>
8
+ <text>Request successfully processed</text>
9
+ <code>0</code>
10
+ </message>
11
+ <response>
12
+ <properties>
13
+ <principal>
14
+ <zpid>48749425</zpid>
15
+ <links>
16
+ <homedetails>http://www.zillow.com/HomeDetails.htm?city=SEATTLE+&state=WA&zprop=48749425&partner=<ZWSID></homedetails>
17
+ <graphsanddata>http://www.zillow.com/Charts.htm?chartDuration=1year&zpid=48749425&cbt=7604042719451599549%7E5%7E3H0JLxtdY3zX%2F2rM093I6LYKRS2%2FYJQyYaLUNkW54os%3D&partner=<ZWSID></graphsanddata>
18
+ <mapthishome>http://www.zillow.com/homes/48749425_zpid&partner=<ZWSID></mapthishome>
19
+ <myestimator>http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975249&zprop=48749425&partner=<ZWSID></myestimator>
20
+ <myzestimator deprecated="true">http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975249&zprop=48749425&partner=<ZWSID></myzestimator>
21
+ <comparables>http://www.zillow.com/comps/48749425_zpid&partner=<ZWSID></comparables>
22
+ </links>
23
+ <address>
24
+ <street>2114 Bigelow Ave N</street>
25
+ <zipcode>98109</zipcode>
26
+ <city>SEATTLE</city>
27
+ <state>WA</state>
28
+ <latitude>47.637934</latitude>
29
+ <longitude>-122.347936</longitude>
30
+ </address>
31
+ <zestimate>
32
+ <amount currency="USD">1124072</amount>
33
+ <last-updated>09/01/2006</last-updated>
34
+ <oneWeekChange currency="USD">25563</oneWeekChange>
35
+ <valuationRange>
36
+ <low currency="USD">966702</low>
37
+ <high currency="USD">1236479</high>
38
+ </valuationRange>
39
+ <percentile>93</percentile>
40
+ </zestimate>
41
+ </principal>
42
+ <comparables>
43
+ <comp score="0.257106811263241">
44
+ <zpid>48749459</zpid>
45
+ <links>
46
+ <homedetails>http://www.zillow.com/HomeDetails.htm?city=SEATTLE+&state=WA&zprop=48749459&partner=<ZWSID></homedetails>
47
+ <graphsanddata>http://www.zillow.com/Charts.htm?chartDuration=1year&zpid=48749459&cbt=7604042719451599549%7E5%7E3H0JLxtdY3zX%2F2rM093I6LYKRS2%2FYJQyYaLUNkW54os%3D&partner=<ZWSID></graphsanddata>
48
+ <mapthishome>http://www.zillow.com/homes/48749459_zpid&partner=<ZWSID></mapthishome>
49
+ <myzestimator>http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975250&zprop=48749459&partner=<ZWSID></myzestimator>
50
+ <comparables>http://www.zillow.com/comps/48749459_zpid&partner=<ZWSID></comparables>
51
+ </links>
52
+ <address>
53
+ <street>2021 5th Ave N</street>
54
+ <zipcode>98109</zipcode>
55
+ <city>SEATTLE</city>
56
+ <state>WA</state>
57
+ <latitude>47.637253</latitude>
58
+ <longitude>-122.347385</longitude>
59
+ </address>
60
+ <zestimate>
61
+ <amount currency="USD">985000</amount>
62
+ <last-updated>09/01/2006</last-updated>
63
+ <oneWeekChange currency="USD">140007</oneWeekChange>
64
+ <valuationRange>
65
+ <low currency="USD">847100</low>
66
+ <high currency="USD">1083500</high>
67
+ </valuationRange>
68
+ <percentile />
69
+ </zestimate>
70
+ </comp>
71
+ <comp score="0.31179534464349695">
72
+ <zpid>48749409</zpid>
73
+ <links>
74
+ <homedetails>http://www.zillow.com/HomeDetails.htm?city=SEATTLE+&state=WA&zprop=48749409&partner=<ZWSID></homedetails>
75
+ <graphsanddata>http://www.zillow.com/Charts.htm?chartDuration=1year&zpid=48749409&cbt=7604042719451599549%7E5%7E3H0JLxtdY3zX%2F2rM093I6LYKRS2%2FYJQyYaLUNkW54os%3D&partner=<ZWSID></graphsanddata>
76
+ <mapthishome>http://www.zillow.com/homes/48749409_zpid&partner=<ZWSID></mapthishome>
77
+ <myzestimator>http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975250&zprop=48749409&partner=<ZWSID></myzestimator>
78
+ <comparables>http://www.zillow.com/comps/48749409_zpid&partner=<ZWSID></comparables>
79
+ </links>
80
+ <address>
81
+ <street>2208 Bigelow Ave N</street>
82
+ <zipcode>98109</zipcode>
83
+ <city>SEATTLE</city>
84
+ <state>WA</state>
85
+ <latitude>47.638543</latitude>
86
+ <longitude>-122.348008</longitude>
87
+ </address>
88
+ <zestimate>
89
+ <amount currency="USD">1326256</amount>
90
+ <last-updated>09/01/2006</last-updated>
91
+ <oneWeekChange currency="USD">269</oneWeekChange>
92
+ <valuationRange>
93
+ <low currency="USD">1140580</low>
94
+ <high currency="USD">1458882</high>
95
+ </valuationRange>
96
+ <percentile />
97
+ </zestimate>
98
+ </comp>
99
+ <comp score="0.35103815285082135">
100
+ <zpid>48690116</zpid>
101
+ <links>
102
+ <homedetails>http://www.zillow.com/HomeDetails.htm?city=SEATTLE+&state=WA&zprop=48690116&partner=<ZWSID></homedetails>
103
+ <graphsanddata>http://www.zillow.com/Charts.htm?chartDuration=1year&zpid=48690116&cbt=7604042719451599549%7E5%7E3H0JLxtdY3zX%2F2rM093I6LYKRS2%2FYJQyYaLUNkW54os%3D&partner=<ZWSID></graphsanddata>
104
+ <mapthishome>http://www.zillow.com/homes/48690116_zpid&partner=<ZWSID></mapthishome>
105
+ <myzestimator>http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975251&zprop=48690116&partner=<ZWSID></myzestimator>
106
+ <comparables>http://www.zillow.com/comps/48690116_zpid&partner=<ZWSID></comparables>
107
+ </links>
108
+ <address>
109
+ <street>2009-1/2 4th Ave N</street>
110
+ <zipcode>98109</zipcode>
111
+ <city>SEATTLE</city>
112
+ <state>WA</state>
113
+ <latitude>47.636845</latitude>
114
+ <longitude>-122.349886</longitude>
115
+ </address>
116
+ <zestimate>
117
+ <amount currency="USD">1096712</amount>
118
+ <last-updated>09/01/2006</last-updated>
119
+ <oneWeekChange currency="USD">222</oneWeekChange>
120
+ <valuationRange>
121
+ <low currency="USD">943172</low>
122
+ <high currency="USD">1206383</high>
123
+ </valuationRange>
124
+ <percentile />
125
+ </zestimate>
126
+ </comp>
127
+ <comp score="0.3738944725221039">
128
+ <zpid>48690106</zpid>
129
+ <links>
130
+ <homedetails>http://www.zillow.com/HomeDetails.htm?city=SEATTLE+&state=WA&zprop=48690106&partner=<ZWSID></homedetails>
131
+ <graphsanddata>http://www.zillow.com/Charts.htm?chartDuration=1year&zpid=48690106&cbt=7604042719451599549%7E5%7E3H0JLxtdY3zX%2F2rM093I6LYKRS2%2FYJQyYaLUNkW54os%3D&partner=<ZWSID></graphsanddata>
132
+ <mapthishome>http://www.zillow.com/homes/48690106_zpid&partner=<ZWSID></mapthishome>
133
+ <myzestimator>http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975251&zprop=48690106&partner=<ZWSID></myzestimator>
134
+ <comparables>http://www.zillow.com/comps/48690106_zpid&partner=<ZWSID></comparables>
135
+ </links>
136
+ <address>
137
+ <street>1920 4th Ave N</street>
138
+ <zipcode>98109</zipcode>
139
+ <city>SEATTLE</city>
140
+ <state>WA</state>
141
+ <latitude>47.636392</latitude>
142
+ <longitude>-122.349243</longitude>
143
+ </address>
144
+ <zestimate>
145
+ <amount currency="USD">942362</amount>
146
+ <last-updated>09/01/2006</last-updated>
147
+ <oneWeekChange currency="USD">-16139</oneWeekChange>
148
+ <valuationRange>
149
+ <low currency="USD">810431</low>
150
+ <high currency="USD">1036598</high>
151
+ </valuationRange>
152
+ <percentile />
153
+ </zestimate>
154
+ </comp>
155
+ <comp score="0.40222697483306563">
156
+ <zpid>48878959</zpid>
157
+ <links>
158
+ <homedetails>http://www.zillow.com/HomeDetails.htm?city=SEATTLE+&state=WA&zprop=48878959&partner=<ZWSID></homedetails>
159
+ <graphsanddata>http://www.zillow.com/Charts.htm?chartDuration=1year&zpid=48878959&cbt=7604042719451599549%7E5%7E3H0JLxtdY3zX%2F2rM093I6LYKRS2%2FYJQyYaLUNkW54os%3D&partner=<ZWSID></graphsanddata>
160
+ <mapthishome>http://www.zillow.com/homes/48878959_zpid&partner=<ZWSID></mapthishome>
161
+ <myzestimator>http://www.zillow.com/myzestimator/MyZestimatorHomeFactsPage.htm?context=1158087975251&zprop=48878959&partner=<ZWSID></myzestimator>
162
+ <comparables>http://www.zillow.com/comps/48878959_zpid&partner=<ZWSID></comparables>
163
+ </links>
164
+ <address>
165
+ <street>2407 4th Ave N</street>
166
+ <zipcode>98109</zipcode>
167
+ <city>SEATTLE</city>
168
+ <state>WA</state>
169
+ <latitude>47.64023</latitude>
170
+ <longitude>-122.34988</longitude>
171
+ </address>
172
+ <zestimate>
173
+ <amount currency="USD">1163280</amount>
174
+ <last-updated>09/01/2006</last-updated>
175
+ <oneWeekChange currency="USD">-7330</oneWeekChange>
176
+ <valuationRange>
177
+ <low currency="USD">1000421</low>
178
+ <high currency="USD">1279608</high>
179
+ </valuationRange>
180
+ <percentile />
181
+ </zestimate>
182
+ </comp>
183
+ </comparables>
184
+ </properties>
185
+ </response>
186
+ </Comps:comps>
187
+ <!--
188
+ H:11 T:48ms S:5037
189
+ -->
@@ -0,0 +1,536 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <Comps:comps xsi:schemaLocation="http://www.zillow.com/static/xsd/Comps.xsd /vstatic/ae1bf8a790b67ef2e902d2bc04046f02/static/xsd/Comps.xsd">
3
+ <request>
4
+ <zpid>48749425</zpid>
5
+ <count>5</count>
6
+ </request>
7
+ <message>
8
+ <text>Request successfully processed</text>
9
+ <code>0</code>
10
+ </message>
11
+ <response>
12
+ <properties>
13
+ <principal>
14
+ <zpid>48749425</zpid>
15
+ <links>
16
+ <homedetails>
17
+ http://www.zillow.com/homedetails/2114-Bigelow-Ave-N-Seattle-WA-98109/48749425_zpid/
18
+ </homedetails>
19
+ <graphsanddata>
20
+ http://www.zillow.com/homedetails/charts/48749425_zpid,1year_chartDuration/?cbt=8860375400203215891%7E4%7E4rtHGS99FewWZQdZkxwcJh2zVPQgG28TgCLWpvfp18j0KOoW_noNWg**
21
+ </graphsanddata>
22
+ <mapthishome>http://www.zillow.com/homes/map/48749425_zpid/</mapthishome>
23
+ <myestimator>
24
+ http://www.zillow.com/myestimator/Edit.htm?zprop=48749425
25
+ </myestimator>
26
+ <myzestimator deprecated="true">
27
+ http://www.zillow.com/myestimator/Edit.htm?zprop=48749425
28
+ </myzestimator>
29
+ <comparables>http://www.zillow.com/homes/comps/48749425_zpid/</comparables>
30
+ </links>
31
+ <address>
32
+ <street>2114 Bigelow Ave N</street>
33
+ <zipcode>98109</zipcode>
34
+ <city>Seattle</city>
35
+ <state>WA</state>
36
+ <latitude>47.63793</latitude>
37
+ <longitude>-122.347936</longitude>
38
+ </address>
39
+ <taxAssessmentYear>2008</taxAssessmentYear>
40
+ <taxAssessment>1054000.0</taxAssessment>
41
+ <yearBuilt>1924</yearBuilt>
42
+ <lotSizeSqFt>4680</lotSizeSqFt>
43
+ <finishedSqFt>3470</finishedSqFt>
44
+ <bathrooms>3.0</bathrooms>
45
+ <bedrooms>4</bedrooms>
46
+ <lastSoldDate>11/26/2008</lastSoldDate>
47
+ <lastSoldPrice currency="USD">995000</lastSoldPrice>
48
+ <zestimate>
49
+ <amount currency="USD">1219500</amount>
50
+ <last-updated>12/31/1969</last-updated>
51
+ <oneWeekChange deprecated="true"/>
52
+ <valueChange duration="30" currency="USD">-41500</valueChange>
53
+ <valuationRange>
54
+ <low currency="USD">1024380</low>
55
+ <high currency="USD">1378035</high>
56
+ </valuationRange>
57
+ <percentile>95</percentile>
58
+ </zestimate>
59
+ <localRealEstate>
60
+ <region id="271856" type="neighborhood" name="East Queen Anne">
61
+ <zindexValue>525,397</zindexValue>
62
+ <zindexOneYearChange>-0.144</zindexOneYearChange>
63
+ <links>
64
+ <overview>
65
+ http://www.zillow.com/local-info/WA-Seattle/East-Queen-Anne/r_271856/
66
+ </overview>
67
+ <forSaleByOwner>
68
+ http://www.zillow.com/homes/fsbo/East-Queen-Anne-Seattle-WA/
69
+ </forSaleByOwner>
70
+ <forSale>
71
+ http://www.zillow.com/homes/for_sale/East-Queen-Anne-Seattle-WA/
72
+ </forSale>
73
+ </links>
74
+ </region>
75
+ <region id="16037" type="city" name="Seattle">
76
+ <zindexValue>381,764</zindexValue>
77
+ <zindexOneYearChange>-0.074</zindexOneYearChange>
78
+ <links>
79
+ <overview>
80
+ http://www.zillow.com/local-info/WA-Seattle/r_16037/
81
+ </overview>
82
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/Seattle-WA/</forSaleByOwner>
83
+ <forSale>http://www.zillow.com/homes/for_sale/Seattle-WA/</forSale>
84
+ </links>
85
+ </region>
86
+ <region id="59" type="state" name="Washington">
87
+ <zindexValue>263,278</zindexValue>
88
+ <zindexOneYearChange>-0.066</zindexOneYearChange>
89
+ <links>
90
+ <overview>
91
+ http://www.zillow.com/local-info/WA-home-value/r_59/
92
+ </overview>
93
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/WA/</forSaleByOwner>
94
+ <forSale>http://www.zillow.com/homes/for_sale/WA/</forSale>
95
+ </links>
96
+ </region>
97
+ </localRealEstate>
98
+ </principal>
99
+ <comparables>
100
+ <comp score="0.156502">
101
+ <zpid>89210365</zpid>
102
+ <links>
103
+ <homedetails>
104
+ http://www.zillow.com/homedetails/1511-10th-Ave-W-Seattle-WA-98119/89210365_zpid/
105
+ </homedetails>
106
+ <graphsanddata>
107
+ http://www.zillow.com/homedetails/charts/89210365_zpid,1year_chartDuration/?cbt=8860375400203215891%7E4%7E4rtHGS99FewWZQdZkxwcJh2zVPQgG28TgCLWpvfp18j0KOoW_noNWg**
108
+ </graphsanddata>
109
+ <mapthishome>http://www.zillow.com/homes/map/89210365_zpid/</mapthishome>
110
+ <myestimator>
111
+ http://www.zillow.com/myestimator/Edit.htm?zprop=89210365
112
+ </myestimator>
113
+ <myzestimator deprecated="true">
114
+ http://www.zillow.com/myestimator/Edit.htm?zprop=89210365
115
+ </myzestimator>
116
+ <comparables>http://www.zillow.com/homes/comps/89210365_zpid/</comparables>
117
+ </links>
118
+ <address>
119
+ <street>1511 10th Ave W</street>
120
+ <zipcode>98119</zipcode>
121
+ <city>Seattle</city>
122
+ <state>WA</state>
123
+ <latitude/>
124
+ <longitude/>
125
+ </address>
126
+ <taxAssessmentYear>2008</taxAssessmentYear>
127
+ <taxAssessment>804000.0</taxAssessment>
128
+ <yearBuilt>2006</yearBuilt>
129
+ <lotSizeSqFt>3750</lotSizeSqFt>
130
+ <finishedSqFt>2520</finishedSqFt>
131
+ <bathrooms>4.0</bathrooms>
132
+ <bedrooms>4</bedrooms>
133
+ <lastSoldDate>09/24/2009</lastSoldDate>
134
+ <lastSoldPrice currency="USD">832500</lastSoldPrice>
135
+ <zestimate>
136
+ <amount currency="USD">836500</amount>
137
+ <last-updated>11/03/2009</last-updated>
138
+ <oneWeekChange deprecated="true"/>
139
+ <valueChange duration="30" currency="USD">-220500</valueChange>
140
+ <valuationRange>
141
+ <low currency="USD">777945</low>
142
+ <high currency="USD">886690</high>
143
+ </valuationRange>
144
+ <percentile>83</percentile>
145
+ </zestimate>
146
+ <localRealEstate>
147
+ <region id="272018" type="neighborhood" name="West Queen Anne">
148
+ <zindexValue>547,776</zindexValue>
149
+ <zindexOneYearChange>-0.078</zindexOneYearChange>
150
+ <links>
151
+ <overview>
152
+ http://www.zillow.com/local-info/WA-Seattle/West-Queen-Anne/r_272018/
153
+ </overview>
154
+ <forSaleByOwner>
155
+ http://www.zillow.com/homes/fsbo/West-Queen-Anne-Seattle-WA/
156
+ </forSaleByOwner>
157
+ <forSale>
158
+ http://www.zillow.com/homes/for_sale/West-Queen-Anne-Seattle-WA/
159
+ </forSale>
160
+ </links>
161
+ </region>
162
+ <region id="16037" type="city" name="Seattle">
163
+ <zindexValue>381,764</zindexValue>
164
+ <zindexOneYearChange>-0.074</zindexOneYearChange>
165
+ <links>
166
+ <overview>
167
+ http://www.zillow.com/local-info/WA-Seattle/r_16037/
168
+ </overview>
169
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/Seattle-WA/</forSaleByOwner>
170
+ <forSale>http://www.zillow.com/homes/for_sale/Seattle-WA/</forSale>
171
+ </links>
172
+ </region>
173
+ <region id="59" type="state" name="Washington">
174
+ <zindexValue>263,278</zindexValue>
175
+ <zindexOneYearChange>-0.066</zindexOneYearChange>
176
+ <links>
177
+ <overview>
178
+ http://www.zillow.com/local-info/WA-home-value/r_59/
179
+ </overview>
180
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/WA/</forSaleByOwner>
181
+ <forSale>http://www.zillow.com/homes/for_sale/WA/</forSale>
182
+ </links>
183
+ </region>
184
+ </localRealEstate>
185
+ </comp>
186
+ <comp score="0.156114">
187
+ <zpid>49009208</zpid>
188
+ <links>
189
+ <homedetails>
190
+ http://www.zillow.com/homedetails/2928-Queen-Anne-Ave-N-Seattle-WA-98109/49009208_zpid/
191
+ </homedetails>
192
+ <graphsanddata>
193
+ http://www.zillow.com/homedetails/charts/49009208_zpid,1year_chartDuration/?cbt=8860375400203215891%7E4%7E4rtHGS99FewWZQdZkxwcJh2zVPQgG28TgCLWpvfp18j0KOoW_noNWg**
194
+ </graphsanddata>
195
+ <mapthishome>http://www.zillow.com/homes/map/49009208_zpid/</mapthishome>
196
+ <myestimator>
197
+ http://www.zillow.com/myestimator/Edit.htm?zprop=49009208
198
+ </myestimator>
199
+ <myzestimator deprecated="true">
200
+ http://www.zillow.com/myestimator/Edit.htm?zprop=49009208
201
+ </myzestimator>
202
+ <comparables>http://www.zillow.com/homes/comps/49009208_zpid/</comparables>
203
+ </links>
204
+ <address>
205
+ <street>2928 Queen Anne Ave N</street>
206
+ <zipcode>98109</zipcode>
207
+ <city>Seattle</city>
208
+ <state>WA</state>
209
+ <latitude>47.646643</latitude>
210
+ <longitude>-122.356534</longitude>
211
+ </address>
212
+ <taxAssessmentYear>2008</taxAssessmentYear>
213
+ <taxAssessment>633000.0</taxAssessment>
214
+ <yearBuilt>1927</yearBuilt>
215
+ <lotSizeSqFt>3240</lotSizeSqFt>
216
+ <finishedSqFt>1920</finishedSqFt>
217
+ <bathrooms>2.0</bathrooms>
218
+ <bedrooms>2</bedrooms>
219
+ <lastSoldDate>08/20/2009</lastSoldDate>
220
+ <lastSoldPrice currency="USD">595000</lastSoldPrice>
221
+ <zestimate>
222
+ <amount currency="USD">608000</amount>
223
+ <last-updated>11/03/2009</last-updated>
224
+ <oneWeekChange deprecated="true"/>
225
+ <valueChange duration="30" currency="USD">11000</valueChange>
226
+ <valuationRange>
227
+ <low currency="USD">559360</low>
228
+ <high currency="USD">656640</high>
229
+ </valuationRange>
230
+ <percentile>68</percentile>
231
+ </zestimate>
232
+ <localRealEstate>
233
+ <region id="271942" type="neighborhood" name="North Queen Anne">
234
+ <zindexValue>521,820</zindexValue>
235
+ <zindexOneYearChange>-0.059</zindexOneYearChange>
236
+ <links>
237
+ <overview>
238
+ http://www.zillow.com/local-info/WA-Seattle/North-Queen-Anne/r_271942/
239
+ </overview>
240
+ <forSaleByOwner>
241
+ http://www.zillow.com/homes/fsbo/North-Queen-Anne-Seattle-WA/
242
+ </forSaleByOwner>
243
+ <forSale>
244
+ http://www.zillow.com/homes/for_sale/North-Queen-Anne-Seattle-WA/
245
+ </forSale>
246
+ </links>
247
+ </region>
248
+ <region id="16037" type="city" name="Seattle">
249
+ <zindexValue>381,764</zindexValue>
250
+ <zindexOneYearChange>-0.074</zindexOneYearChange>
251
+ <links>
252
+ <overview>
253
+ http://www.zillow.com/local-info/WA-Seattle/r_16037/
254
+ </overview>
255
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/Seattle-WA/</forSaleByOwner>
256
+ <forSale>http://www.zillow.com/homes/for_sale/Seattle-WA/</forSale>
257
+ </links>
258
+ </region>
259
+ <region id="59" type="state" name="Washington">
260
+ <zindexValue>263,278</zindexValue>
261
+ <zindexOneYearChange>-0.066</zindexOneYearChange>
262
+ <links>
263
+ <overview>
264
+ http://www.zillow.com/local-info/WA-home-value/r_59/
265
+ </overview>
266
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/WA/</forSaleByOwner>
267
+ <forSale>http://www.zillow.com/homes/for_sale/WA/</forSale>
268
+ </links>
269
+ </region>
270
+ </localRealEstate>
271
+ </comp>
272
+ <comp score="0.153359">
273
+ <zpid>48689916</zpid>
274
+ <links>
275
+ <homedetails>
276
+ http://www.zillow.com/homedetails/1713-Warren-Ave-N-Seattle-WA-98109/48689916_zpid/
277
+ </homedetails>
278
+ <graphsanddata>
279
+ http://www.zillow.com/homedetails/charts/48689916_zpid,1year_chartDuration/?cbt=8860375400203215891%7E4%7E4rtHGS99FewWZQdZkxwcJh2zVPQgG28TgCLWpvfp18j0KOoW_noNWg**
280
+ </graphsanddata>
281
+ <mapthishome>http://www.zillow.com/homes/map/48689916_zpid/</mapthishome>
282
+ <myestimator>
283
+ http://www.zillow.com/myestimator/Edit.htm?zprop=48689916
284
+ </myestimator>
285
+ <myzestimator deprecated="true">
286
+ http://www.zillow.com/myestimator/Edit.htm?zprop=48689916
287
+ </myzestimator>
288
+ <comparables>http://www.zillow.com/homes/comps/48689916_zpid/</comparables>
289
+ </links>
290
+ <address>
291
+ <street>1713 Warren Ave N</street>
292
+ <zipcode>98109</zipcode>
293
+ <city>Seattle</city>
294
+ <state>WA</state>
295
+ <latitude>47.634439</latitude>
296
+ <longitude>-122.354789</longitude>
297
+ </address>
298
+ <taxAssessmentYear>2008</taxAssessmentYear>
299
+ <taxAssessment>628000.0</taxAssessment>
300
+ <yearBuilt>1905</yearBuilt>
301
+ <lotSizeSqFt>6000</lotSizeSqFt>
302
+ <finishedSqFt>2100</finishedSqFt>
303
+ <bathrooms>1.0</bathrooms>
304
+ <bedrooms>3</bedrooms>
305
+ <totalRooms>8</totalRooms>
306
+ <lastSoldDate>05/12/2009</lastSoldDate>
307
+ <lastSoldPrice currency="USD">637500</lastSoldPrice>
308
+ <zestimate>
309
+ <amount currency="USD">696500</amount>
310
+ <last-updated>11/03/2009</last-updated>
311
+ <oneWeekChange deprecated="true"/>
312
+ <valueChange duration="30" currency="USD">-15500</valueChange>
313
+ <valuationRange>
314
+ <low currency="USD">592025</low>
315
+ <high currency="USD">787045</high>
316
+ </valuationRange>
317
+ <percentile>77</percentile>
318
+ </zestimate>
319
+ <localRealEstate>
320
+ <region id="271856" type="neighborhood" name="East Queen Anne">
321
+ <zindexValue>525,397</zindexValue>
322
+ <zindexOneYearChange>-0.144</zindexOneYearChange>
323
+ <links>
324
+ <overview>
325
+ http://www.zillow.com/local-info/WA-Seattle/East-Queen-Anne/r_271856/
326
+ </overview>
327
+ <forSaleByOwner>
328
+ http://www.zillow.com/homes/fsbo/East-Queen-Anne-Seattle-WA/
329
+ </forSaleByOwner>
330
+ <forSale>
331
+ http://www.zillow.com/homes/for_sale/East-Queen-Anne-Seattle-WA/
332
+ </forSale>
333
+ </links>
334
+ </region>
335
+ <region id="16037" type="city" name="Seattle">
336
+ <zindexValue>381,764</zindexValue>
337
+ <zindexOneYearChange>-0.074</zindexOneYearChange>
338
+ <links>
339
+ <overview>
340
+ http://www.zillow.com/local-info/WA-Seattle/r_16037/
341
+ </overview>
342
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/Seattle-WA/</forSaleByOwner>
343
+ <forSale>http://www.zillow.com/homes/for_sale/Seattle-WA/</forSale>
344
+ </links>
345
+ </region>
346
+ <region id="59" type="state" name="Washington">
347
+ <zindexValue>263,278</zindexValue>
348
+ <zindexOneYearChange>-0.066</zindexOneYearChange>
349
+ <links>
350
+ <overview>
351
+ http://www.zillow.com/local-info/WA-home-value/r_59/
352
+ </overview>
353
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/WA/</forSaleByOwner>
354
+ <forSale>http://www.zillow.com/homes/for_sale/WA/</forSale>
355
+ </links>
356
+ </region>
357
+ </localRealEstate>
358
+ </comp>
359
+ <comp score="0.15329">
360
+ <zpid>49072323</zpid>
361
+ <links>
362
+ <homedetails>
363
+ http://www.zillow.com/homedetails/2583-7th-Ave-W-Seattle-WA-98119/49072323_zpid/
364
+ </homedetails>
365
+ <graphsanddata>
366
+ http://www.zillow.com/homedetails/charts/49072323_zpid,1year_chartDuration/?cbt=8860375400203215891%7E4%7E4rtHGS99FewWZQdZkxwcJh2zVPQgG28TgCLWpvfp18j0KOoW_noNWg**
367
+ </graphsanddata>
368
+ <mapthishome>http://www.zillow.com/homes/map/49072323_zpid/</mapthishome>
369
+ <myestimator>
370
+ http://www.zillow.com/myestimator/Edit.htm?zprop=49072323
371
+ </myestimator>
372
+ <myzestimator deprecated="true">
373
+ http://www.zillow.com/myestimator/Edit.htm?zprop=49072323
374
+ </myzestimator>
375
+ <comparables>http://www.zillow.com/homes/comps/49072323_zpid/</comparables>
376
+ </links>
377
+ <address>
378
+ <street>2583 7th Ave W</street>
379
+ <zipcode>98119</zipcode>
380
+ <city>Seattle</city>
381
+ <state>WA</state>
382
+ <latitude>47.642952</latitude>
383
+ <longitude>-122.366634</longitude>
384
+ </address>
385
+ <taxAssessmentYear>2008</taxAssessmentYear>
386
+ <taxAssessment>638000.0</taxAssessment>
387
+ <yearBuilt>1940</yearBuilt>
388
+ <lotSizeSqFt>5520</lotSizeSqFt>
389
+ <finishedSqFt>2400</finishedSqFt>
390
+ <bathrooms>2.5</bathrooms>
391
+ <bedrooms>3</bedrooms>
392
+ <lastSoldDate>07/31/2009</lastSoldDate>
393
+ <lastSoldPrice currency="USD">900000</lastSoldPrice>
394
+ <zestimate>
395
+ <amount currency="USD">831500</amount>
396
+ <last-updated>11/03/2009</last-updated>
397
+ <oneWeekChange deprecated="true"/>
398
+ <valueChange duration="30" currency="USD">-8000</valueChange>
399
+ <valuationRange>
400
+ <low currency="USD">740035</low>
401
+ <high currency="USD">898020</high>
402
+ </valuationRange>
403
+ <percentile>83</percentile>
404
+ </zestimate>
405
+ <localRealEstate>
406
+ <region id="271942" type="neighborhood" name="North Queen Anne">
407
+ <zindexValue>521,820</zindexValue>
408
+ <zindexOneYearChange>-0.059</zindexOneYearChange>
409
+ <links>
410
+ <overview>
411
+ http://www.zillow.com/local-info/WA-Seattle/North-Queen-Anne/r_271942/
412
+ </overview>
413
+ <forSaleByOwner>
414
+ http://www.zillow.com/homes/fsbo/North-Queen-Anne-Seattle-WA/
415
+ </forSaleByOwner>
416
+ <forSale>
417
+ http://www.zillow.com/homes/for_sale/North-Queen-Anne-Seattle-WA/
418
+ </forSale>
419
+ </links>
420
+ </region>
421
+ <region id="16037" type="city" name="Seattle">
422
+ <zindexValue>381,764</zindexValue>
423
+ <zindexOneYearChange>-0.074</zindexOneYearChange>
424
+ <links>
425
+ <overview>
426
+ http://www.zillow.com/local-info/WA-Seattle/r_16037/
427
+ </overview>
428
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/Seattle-WA/</forSaleByOwner>
429
+ <forSale>http://www.zillow.com/homes/for_sale/Seattle-WA/</forSale>
430
+ </links>
431
+ </region>
432
+ <region id="59" type="state" name="Washington">
433
+ <zindexValue>263,278</zindexValue>
434
+ <zindexOneYearChange>-0.066</zindexOneYearChange>
435
+ <links>
436
+ <overview>
437
+ http://www.zillow.com/local-info/WA-home-value/r_59/
438
+ </overview>
439
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/WA/</forSaleByOwner>
440
+ <forSale>http://www.zillow.com/homes/for_sale/WA/</forSale>
441
+ </links>
442
+ </region>
443
+ </localRealEstate>
444
+ </comp>
445
+ <comp score="0.153177">
446
+ <zpid>48795590</zpid>
447
+ <links>
448
+ <homedetails>
449
+ http://www.zillow.com/homedetails/1912-4th-Ave-W-Seattle-WA-98119/48795590_zpid/
450
+ </homedetails>
451
+ <graphsanddata>
452
+ http://www.zillow.com/homedetails/charts/48795590_zpid,1year_chartDuration/?cbt=8860375400203215891%7E4%7E4rtHGS99FewWZQdZkxwcJh2zVPQgG28TgCLWpvfp18j0KOoW_noNWg**
453
+ </graphsanddata>
454
+ <mapthishome>http://www.zillow.com/homes/map/48795590_zpid/</mapthishome>
455
+ <myestimator>
456
+ http://www.zillow.com/myestimator/Edit.htm?zprop=48795590
457
+ </myestimator>
458
+ <myzestimator deprecated="true">
459
+ http://www.zillow.com/myestimator/Edit.htm?zprop=48795590
460
+ </myzestimator>
461
+ <comparables>http://www.zillow.com/homes/comps/48795590_zpid/</comparables>
462
+ </links>
463
+ <address>
464
+ <street>1912 4th Ave W</street>
465
+ <zipcode>98119</zipcode>
466
+ <city>Seattle</city>
467
+ <state>WA</state>
468
+ <latitude>47.636392</latitude>
469
+ <longitude>-122.361917</longitude>
470
+ </address>
471
+ <taxAssessmentYear>2008</taxAssessmentYear>
472
+ <taxAssessment>500000.0</taxAssessment>
473
+ <yearBuilt>1920</yearBuilt>
474
+ <lotSizeSqFt>3600</lotSizeSqFt>
475
+ <finishedSqFt>1720</finishedSqFt>
476
+ <bathrooms>2.0</bathrooms>
477
+ <bedrooms>3</bedrooms>
478
+ <totalRooms>10</totalRooms>
479
+ <lastSoldDate>08/12/2009</lastSoldDate>
480
+ <lastSoldPrice currency="USD">645000</lastSoldPrice>
481
+ <zestimate>
482
+ <amount currency="USD">648000</amount>
483
+ <last-updated>11/03/2009</last-updated>
484
+ <oneWeekChange deprecated="true"/>
485
+ <valueChange duration="30" currency="USD">-8500</valueChange>
486
+ <valuationRange>
487
+ <low currency="USD">596160</low>
488
+ <high currency="USD">699840</high>
489
+ </valuationRange>
490
+ <percentile>65</percentile>
491
+ </zestimate>
492
+ <localRealEstate>
493
+ <region id="272018" type="neighborhood" name="West Queen Anne">
494
+ <zindexValue>547,776</zindexValue>
495
+ <zindexOneYearChange>-0.078</zindexOneYearChange>
496
+ <links>
497
+ <overview>
498
+ http://www.zillow.com/local-info/WA-Seattle/West-Queen-Anne/r_272018/
499
+ </overview>
500
+ <forSaleByOwner>
501
+ http://www.zillow.com/homes/fsbo/West-Queen-Anne-Seattle-WA/
502
+ </forSaleByOwner>
503
+ <forSale>
504
+ http://www.zillow.com/homes/for_sale/West-Queen-Anne-Seattle-WA/
505
+ </forSale>
506
+ </links>
507
+ </region>
508
+ <region id="16037" type="city" name="Seattle">
509
+ <zindexValue>381,764</zindexValue>
510
+ <zindexOneYearChange>-0.074</zindexOneYearChange>
511
+ <links>
512
+ <overview>
513
+ http://www.zillow.com/local-info/WA-Seattle/r_16037/
514
+ </overview>
515
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/Seattle-WA/</forSaleByOwner>
516
+ <forSale>http://www.zillow.com/homes/for_sale/Seattle-WA/</forSale>
517
+ </links>
518
+ </region>
519
+ <region id="59" type="state" name="Washington">
520
+ <zindexValue>263,278</zindexValue>
521
+ <zindexOneYearChange>-0.066</zindexOneYearChange>
522
+ <links>
523
+ <overview>
524
+ http://www.zillow.com/local-info/WA-home-value/r_59/
525
+ </overview>
526
+ <forSaleByOwner>http://www.zillow.com/homes/fsbo/WA/</forSaleByOwner>
527
+ <forSale>http://www.zillow.com/homes/for_sale/WA/</forSale>
528
+ </links>
529
+ </region>
530
+ </localRealEstate>
531
+ </comp>
532
+ </comparables>
533
+ </properties>
534
+ </response>
535
+ </Comps:comps>
536
+