Oodle API developers,
Two small fixes to the Oodle API just went out. Details are below.
The two changes have to do with how the values for "bedrooms" and "bathrooms"
are stated in the API response.
_______________________________
(1) BEDROOMS for STUDIO APARTMENTS
Previously, for studio apartments, the value for "bedrooms" was "-1":
<attributes>
<amenities>Wood Floors</amenities>
<bathrooms>1.5</bathrooms>
<bedrooms>-1</bedrooms>
<currency>USD</currency>
[...]
</attributes>
Of course, "-1" makes no sense.
Studio listings will now have "0" as a value for bedrooms.
<attributes>
<amenities>Wood Floors</amenities>
<bathrooms>1.5</bathrooms>
<bedrooms>0</bedrooms>
<currency>USD</currency>
[...]
</attributes>
To get listings for studio apartments, just add "bedrooms_0" to your API
request, for example:
http://api.oodle.com/api/v2/listings?key=TEST®ion=chicago&category=housing/re\
nt&attributes=bedrooms_0
_______________________________
(2) BATHROOMS
For homes that had a whole number of bathrooms -- 1, 2, 3, 4, etc. -- we were
previously outputting that value as a float. For example:
<attributes>
<amenities>Wood Floors</amenities>
<bathrooms>2.0</bathrooms>
<bedrooms>3</bedrooms>
<currency>USD</currency>
[...]
</attributes>
Notice the "2.0" for bathrooms above.
Going forward, in the case where we have ".0", we'll now simply drop the decimal
point:
<attributes>
<amenities>Wood Floors</amenities>
<bathrooms>2</bathrooms>
<bedrooms>3</bedrooms>
<currency>USD</currency>
[...]
</attributes>
This cleans things up a little bit and brings it in line with how we display
"bedrooms" (no decimal points unless needed).
"Bathrooms" values that need the decimal point will still have it, so we're all
good there. For example:
<attributes>
<amenities>Wood Floors</amenities>
<bathrooms>2.5</bathrooms>
<bedrooms>3</bedrooms>
<currency>USD</currency>
[...]
</attributes>
That's it for now! Continued good luck with all of your API apps. Hope these
small changes help to make things feel a bit more natural in your API
implementations.
We don't like to mess with the output a whole lot, but when bugs and small
things like this creep up, we'll knock them out for you.
-Steve Baker
Sr. Software Engineer, Oodle
http://www.twitter.com/oodleapi