Here it is. For both queries we are trying to get this: "Get
information about "Sushi Masa" restaurant located near zip code
33431".
#1 Query URL without [item+type:restaurants]
http://base.google.com/base/feeds/snippets?bq=%5Blocation%3A+%40%2233431%22+%2B+3mi%5Dsushi+masa
Response:
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"; xmlns:openSearch="http://
a9.com/-/spec/opensearchrss/1.0/" xmlns:gm="http://base.google.com/ns-
metadata/1.0" xmlns:g="http://base.google.com/ns/1.0";
xmlns:batch="http://schemas.google.com/gdata/batch";>
    <id>http://www.google.com/base/feeds/snippets</id>
    <updated>2010-02-01T17:02:57.461Z</updated>
    <title type="text">Items matching query: [location: @"33431" + 3mi]
sushi masa</title>
    <link rel="alternate" type="text/html" href="http://
base.google.com"/>
    <link rel="http://schemas.google.com/g/2005#feed";
type="application/atom+xml" href="http://www.google.com/base/feeds/
snippets"/>
    <link rel="http://schemas.google.com/g/2005#batch";
type="application/atom+xml" href="http://www.google.com/base/feeds/
snippets/batch"/>
    <link rel="self" type="application/atom+xml" href="http://
www.google.com/base/feeds/snippets?start-index=1&amp;max-results=25&amp;bq=%5Blocation%3A+%40%2233431%22+%2B+3mi%5Dsushi+masa"/>
    <author>
        <name>Google Inc.</name>
        <email>b...@google.com</email>
    </author>
    <generator version="1.0" uri="http://base.google.com";>GoogleBase</
generator>
    <openSearch:totalResults>2</openSearch:totalResults>
    <openSearch:startIndex>1</openSearch:startIndex>
    <openSearch:itemsPerPage>25</openSearch:itemsPerPage>
    <entry>
        <id>http://www.google.com/base/feeds/snippets/
6523103435119277212</id>
        <published>2007-07-12T20:11:23.000Z</published>
        <updated>2007-10-22T01:21:38.000Z</updated>
        <category scheme="http://base.google.com/categories/itemtypes";
term="Restaurants"/>
        <title type="text">Sushi Masa Japanese Restaurant</title>
        <content type="html">Your Host(s): Masayuki Funahashi -</
content>
        <link rel="alternate" type="text/html" href="http://
www.upstatedreams.com/mdlink.php?id=Fl28089&amp;search_state=Florida&amp;cn=FL"/>
        <link rel="self" type="application/atom+xml" href="http://
www.google.com/base/feeds/snippets/6523103435119277212"/>
        <author>
            <name>American Dreams</name>
            <email>anon-cio95q04r...@base.google.com</email>
        </author>
        <g:id type="text">Fl28089</g:id>
        <g:target_country type="text">US</g:target_country>
        <g:location type="location">200 Glades Rd 1201, Boca Raton, FL
33432</g:location>
        <g:expiration_date type="dateTime">2038-01-19T03:14:07Z</
g:expiration_date>
        <g:image_link type="url">http://www.menudine.com/yellow_images/
58120109.jpg</g:image_link>
        <g:customer_id type="int">1605920</g:customer_id>
        <g:item_language type="text">EN</g:item_language>
        <g:item_type type="text">Restaurants</g:item_type>
    </entry>
    <entry>
        <id>http://www.google.com/base/feeds/snippets/
782691195702312510</id>
        <published>2006-12-27T23:09:28.000Z</published>
        <updated>2006-12-27T23:09:28.000Z</updated>
        <category scheme="http://base.google.com/categories/itemtypes";
term="Reviews"/>
        <title type="text">great weekday business lunch</title>
        <content type="html">Restaurant review of Sushi Masa Japanese
Restaurant in Boca Raton, FL</content>
        <link rel="alternate" type="text/html" href="http://
www.restaurantdb.net/restaurants/reviews-118172.html"/>
        <link rel="self" type="application/atom+xml" href="http://
www.google.com/base/feeds/snippets/782691195702312510"/>
        <author>
            <name>RestaurantDB.net</name>
        </author>
        <g:publish_date type="dateTime">2005-08-04T00:00:00</
g:publish_date>
        <g:review_type type="text">restaurant</g:review_type>
        <g:location type="location">2200 Glades Rd, Boca Raton, FL
33431</g:location>
        <g:name_of_item_reviewed type="text">Sushi Masa Japanese
Restaurant</g:name_of_item_reviewed>
        <g:item_language type="text">EN</g:item_language>
        <g:id type="text">118172-971-0</g:id>
        <g:author type="text">valerian</g:author>
        <g:target_country type="text">US</g:target_country>
        <g:expiration_date type="dateTime">2038-01-19T03:14:07Z</
g:expiration_date>
        <g:rating type="intUnit">10 out of 10</g:rating>
        <g:reviewer_type type="text">user</g:reviewer_type>
        <g:customer_id type="int">1452826</g:customer_id>
        <g:item_type type="text">Reviews</g:item_type>
    </entry>
</feed>

#2 Query URL with [item+type:restaurants]
http://base.google.com/base/feeds/snippets?bq=%5Bitem+type%3Arestaurants%5D%5Blocation%3A+%40%2233431%22+%2B+3mi%5Dsushi+masa

Response:
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"; xmlns:openSearch="http://
a9.com/-/spec/opensearchrss/1.0/" xmlns:gm="http://base.google.com/ns-
metadata/1.0" xmlns:g="http://base.google.com/ns/1.0";
xmlns:batch="http://schemas.google.com/gdata/batch";>
    <id>http://www.google.com/base/feeds/snippets</id>
    <updated>2010-02-01T17:04:15.509Z</updated>
    <title type="text">Items matching query: [item type:restaurants]
[location: @"33431" + 3mi]sushi masa</title>
    <link rel="alternate" type="text/html" href="http://
base.google.com"/>
    <link rel="http://schemas.google.com/g/2005#feed";
type="application/atom+xml" href="http://www.google.com/base/feeds/
snippets"/>
    <link rel="http://schemas.google.com/g/2005#batch";
type="application/atom+xml" href="http://www.google.com/base/feeds/
snippets/batch"/>
    <link rel="self" type="application/atom+xml" href="http://
www.google.com/base/feeds/snippets?start-index=1&amp;max-results=25&amp;bq=%5Bitem+type%3Arestaurants%5D%5Blocation%3A+%40%2233431%22+%2B+3mi%5Dsushi+masa"/>
    <author>
        <name>Google Inc.</name>
        <email>b...@google.com</email>
    </author>
    <generator version="1.0" uri="http://base.google.com";>GoogleBase</
generator>
    <openSearch:totalResults>0</openSearch:totalResults>
    <openSearch:startIndex>1</openSearch:startIndex>
    <openSearch:itemsPerPage>25</openSearch:itemsPerPage>
</feed>


See?


On Jan 29, 11:04 pm, Celebird <supp...@celebird.com> wrote:
> the original post's query was structured incorrectly;
> the correct way to request an item-type begins as:
> bq=[item+type:restaurants]
>
> please show a corrected url link to the exact query
> and a summary of the response.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to google-base-data-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-base-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-base-data-api?hl=en.

Reply via email to