Search the web
Sign In
New User? Sign Up
oodleapi · Oodle API Developers Chat
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Oodle API changes - "bedrooms" & "bathrooms"   Message List  
Reply | Forward Message #489 of 539 |
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&region=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





Tue Jun 30, 2009 11:13 pm

pack_78
Offline Offline
Send Email Send Email

Forward
Message #489 of 539 |
Expand Messages Author Sort by Date

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...
Steve B
pack_78
Offline Send Email
Jun 30, 2009
11:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help