Deals query with lat/lng

472 views
Skip to first unread message

Luis Malavé

unread,
Apr 10, 2012, 10:43:51 AM4/10/12
to Groupon API Forum
Was there any change on the deals query that it now requires the
division_id?
I was doing this query and now it's not working

https://api.groupon.com/v2/deals/?client_id=<client_id>&lat=36.419072&lng=-104.890594

And now I'm getting this error:


{"error":{"httpCode":400,"message":"Invalid division"}}

But If I do something like this:

https://api.groupon.com/v2/deals/?client_id=<client_id>&lat=36.419072&lng=-104.890594&division_id=chicago

I will get results but It will completely ignore the coordinates. And
according to the documentation the division_id is supposed to be
option

Thanks for any help

Alex Rakoczy

unread,
Apr 23, 2012, 1:53:57 PM4/23/12
to Groupon API Forum
Hi Luis,

Your latitude and longitude provided is not within a reasonable
distance of a division. http://g.co/maps/xm3yu

In order to expand your search to a wider radius, provide a radius
parameter in miles.

Alex
Reply all
Reply to author
Forward
0 new messages