Java Reference
In-Depth Information
To implement or run the code presented in this recipe yourself, you will need to get Google
and Zillow API keys at http://code.google.com/apis/maps/signup.html and
https://www.zillow.com/webservice/Registration.html , respectively.
Prior to jumping into the code, let's review the XML document, which is returned by the Zillow
web service call. Zillow uses a REST-style API, whereby requests are sent to the server as an
HTTP.GET method, and the server responses are returned as an XML document. For our
needs, we will use the GetSearchResults web service to obtain information on a given
location. The service returns an XML payload which looks like the following XML snippet
(only showing used data elements):
<?xml version="1.0" encoding="utf-8" ?>
<SearchResults:searchresults xmlns:Se archResults="http://www.zillow.
com/vstatic/3/static/xsd/Searc hResults.xsd">
...
<response>
<results>
<result>
<zpid>48749425</zpid>
...
<address>
<street>2114 Bigelow Ave N</street>
<zipcode>98109</zipcode>
<city>SEATTLE</city>
<state>WA</state>
<latitude>47.637934</latitude>
<longitude>-122.347936</longitude>
</address>
<zestimate>
<amount currency="USD">1241162</amount>
<last-updated>10/25/2007</last-updated>
...
</zestimate>
</result>
</results>
</response>
</SearchResults:searchresults>
 
Search WWH ::




Custom Search