Hi Lance,
You make an excellent point. Until today, the /events/search call
didn't support multiple categories at once. As of today, though, we've
added the ability to specify more than one category in a comma-
separated list. For example:
http://api.evdb.com/rest/events/search?c=art,music&l=37.33169,-122.03073&within=2.0&units=miles&t=today&app_key=test_key
I hope that helps. Let me know if you have any questions.
Cheers,
Chris Radcliff
[email protected]
On May 21, 2009, at 4:38 PM, Lance Welsh wrote:
If I want to search for both art and music events, it seems c=( art
|| music ) should work, but it simply fails to enforce the category
filter. I've tried c=art||music and (c=art|c=music) and others, but
none seem to work.
For instance, without any category filter, this returns 10 events:
http://api.evdb.com/rest/events/search?l=37.33169,-122.03073&within=2.0&units=miles&t=today&app_key=
if I restrict it to art, this returns 2 events (at least today, 5/21):
http://api.evdb.com/rest/events/search?c=art&l=37.33169,-122.03073&within=2.0&units=miles&t=today&app_key=
if I restrict it to music, this returns 1 event:
http://api.evdb.com/rest/events/search?c=music&l=37.33169,-122.03073&within=2.0&units=miles&t=today&app_key=
so I would expect this to return 3 events:
http://api.evdb.com/rest/events/search?c=(art||
music)&l=37.33169,-122.03073&within=2.0&units=miles&t=today&app_key=
but it (and all the permutations that seemed sensible to me) returns
all the same events as if there were no filter.
Is the API broken, or am I doing something wrong? -Lance.