Multiple Qualifiers

26 views
Skip to first unread message

Zachary Thomas

unread,
Mar 19, 2012, 4:02:23 PM3/19/12
to citygrid...@googlegroups.com
Is there a way to submit multiple qualifiers to the API as a means to refine a result set i.e. Asian + Carry out or Barbecue + Banquet Hall ?
Message has been deleted

Kin Lane - CityGrid

unread,
Mar 19, 2012, 6:54:05 PM3/19/12
to citygrid...@googlegroups.com
On Monday, March 19, 2012 3:51:09 PM UTC-7, Kin Lane - CityGrid wrote:
Hey Zachary,

The "What" parameter is best when applied a single keyword or key phrase.

I recommend using the tag parameter:

tagRestricts search to listings with the given tag idSeeNotesbelow.An integer 1722Tag ids are internal CityGrid identifiers and subject to change. This parameter should only be used in queries that are obtained as "refinement urls" from previous searches

You can find tag IDs via previous searches.  We do not have a META data API for this data, but plan on in the future.

Here are some examples:

<tag id="11238" primary="false">Bar Scene</tag>
<tag id="11201" primary="false">Sushi</tag>
<tag id="11202" primary="false">Japanese</tag>
<tag id="11234" primary="false">$$$$</tag>
<tag id="11204" primary="false">Brazilian</tag>
<tag id="11256" primary="false">Date Spot</tag>
<tag id="11269" primary="false">Group Dining</tag>
<tag id="11367" primary="false">Open 7 Days</tag>
<tag id="11298" primary="false">People Watching</tag>

You can apply a comma separated set of tag IDS to further be applied to your "where" search.

Thanks!

Kin Lane
@citygridapiteam

Kin Lane - CityGrid

unread,
Mar 19, 2012, 7:33:45 PM3/19/12
to citygrid...@googlegroups.com
I mistakenly said apply a comma separated set of tags.

You should actually do each tag ID as separate value like this:  &tag=1722&tag=11256&tag=11333

These will further filter your "What" search keyword / phrase.

Thanks,

Kin Lane
Reply all
Reply to author
Forward
0 new messages