5 messages in com.googlegroups.google-base-data-apiRe: Querying Google Base to get full ...| From | Sent On | Attachments |
|---|---|---|
| Gage | 23 Jul 2007 10:02 | |
| Jeff S | 23 Jul 2007 16:33 | |
| Gage | 24 Jul 2007 07:54 | |
| Jeff S | 14 Aug 2007 16:50 | |
| Dal...@ PBPost | 15 Aug 2007 06:27 |
| Subject: | Re: Querying Google Base to get full data of listings![]() |
|---|---|
| From: | Jeff S (j....@google.com) |
| Date: | 07/23/2007 04:33:51 PM |
| List: | com.googlegroups.google-base-data-api |
Hi Gage,
The information that you mentioned (street address, price, agents) are
Google Base attributes which are all simple XML nodes in the Google
Base namespace: http://base.google.com/ns/1.0 . I think the element
names you are looking for would be location, price, and agent. You can
also look up attributes using the attributes feed:
http://code.google.com/apis/base/attributes-feed.html , or the
attributes documentation pages:
http://base.google.com/base/api/universalAttributes
. I'm not familiar with PHP's SimpleXMLElement so I'm not sure how to
best get these XML elements in your program. I can take a look if you
would like help.
Thank you,
Jeff
On Jul 23, 10:02 am, Gage <ggra...@optiventures.com> wrote:
The query I'm using is:
http://www.google.com/base/feeds/snippets/-/housing?bq=[item type:housing] [listing type:for sale][location:@"Annapolis, MD USA"+25mi] [price < 700000 USD]&start-index=1&max- results=250&key=key_here
the results I'm getting is (one for example):
[3] => SimpleXMLElement Object
(
[id]
=>http://www.google.com/base/feeds/snippets/2777854214268998735
[published] => 2007-07-16T17:10:52.000Z
[updated] => 2007-07-20T19:42:04.000Z
[category] => SimpleXMLElement Object
(
[@attributes] => Array
(
[scheme]
=>http://base.google.com/categories/itemtypes
[term] => Housing
)
)
[title] => Waterford, CT
[content] => Stunning Custom Built Contemporary w/
dramatic flare. Well-maintained, spacious one level living, this home
was designed for entertaining. Professionally landscaped with a Zen
garden, private back yard with man made waterfall and pond.
Basement ...
[link] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[rel] => alternate
[type] => text/html
[href]
=>http://realestate.nytimes.com/+Comshare/vulisting.asp?Lid=274-1254620
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[rel] => self
[type] => application/atom
+xml
[href]
=>http://www.google.com/base/feeds/snippets/2777854214268998735
)
)
)
[author] => SimpleXMLElement Object ( [name] => The New York Times [email] => re....@nytimes.com )
)
How can I get all the information like the street address, price, agents etc?
Thanks for your help. //g




