Category joins

1 view
Skip to first unread message

Costas

unread,
Dec 21, 2011, 4:01:42 AM12/21/11
to Hyperpublic API Developers
Hi,

I discovered Hyperpublic Places+ a couple of days ago -- exciting
service. I'm already building my first app using it.

One issue I'm having, is that I can't make a query for a number of
categories and get results in all those categories. An example: If I
want to get Pubs and Spanish Restaurants in some area, I have to make
these two queries (one for Pubs, one for Spanish Restaurants). This is
ok for 2-3 categories, maybe, but in my case I'm having to make 32
queries when I could actually make only 4, if there was some "join"
construct -- e.g. a group of categories provided in a query, separated
by "|" or something.

Am I missing something?

Thanks,

Costas

Doug Petkanics

unread,
Dec 21, 2011, 5:22:56 PM12/21/11
to hyperpublic-a...@googlegroups.com
Hello, 

You can now pass multiple category IDs in using the category parameter by comma separating the IDs. For example:

category=4e28ae9f643bce000400014e,4e28ae8f643bce00040000a8

will give you both Cafe's and Home & Garden. You can pass as many IDs as you'd like in one call.

-Doug
--
Doug Petkanics | @petkanics
Co-founder at Hyperpublic

Constantinos (Costas) Kotsokalis

unread,
Dec 21, 2011, 5:42:20 PM12/21/11
to hyperpublic-a...@googlegroups.com
Fantastic! That was very efficient :-)

Thanks,

 Costas
Reply all
Reply to author
Forward
0 new messages