searchEvents retrieves ALL records no matter you specify a distance

9 views
Skip to first unread message

Hugo Flores

unread,
Mar 27, 2012, 10:35:45 PM3/27/12
to cocoafi...@googlegroups.com
searchEvents  retrieves ALL records no matter you specify a distance, WHY?

Wei Kong

unread,
Mar 27, 2012, 10:42:05 PM3/27/12
to cocoafi...@googlegroups.com
can you provide the parameters you used to search? also, can you please email us your app key at in...@cocoafish.com?

Thanks,m
Wei

-- 
Wei Kong
Sent with Sparrow

Hugo Flores

unread,
Mar 28, 2012, 12:55:38 AM3/28/12
to cocoafi...@googlegroups.com
I used, lnglat and distance.

Wei Kong

unread,
Mar 28, 2012, 1:00:05 AM3/28/12
to cocoafi...@googlegroups.com
Hi Hugo,

when you use search.json, you want to use latitude and longitude instead of lnglat as you would do with query.json.

Please see


for differences between query and search.

Thanks,
Wei

___________________
Wei Kong
Co-Founder | Cocoafish
mobile: 415-533-1853

Hugo Flores

unread,
Mar 28, 2012, 2:07:29 AM3/28/12
to cocoafi...@googlegroups.com
well, in the api reference says we can use:
lnglat   -  
Geo location array - [longitude, latitude]   and distance  - Distance in km

and I get the same result with query

Wei Kong

unread,
Mar 28, 2012, 12:11:33 PM3/28/12
to cocoafi...@googlegroups.com
Hi Hugo,


for events/search.json, it listed 

latitudeLatitude of the search starting point
longitudeLongitude of the search starting point

I took a look at your log and you passed in lat and lng:

lnglat={longitude:20.66218,latitude:-103.394394}

But it is not a recognized parameter so it was ignored, it should be

https://api.cocoafish.com/v1//events/search.json?key=<your key>&latitude=-103.394394&longitude=20.66218&distance=0.00782712

___________________
Wei Kong
Co-Founder | Cocoafish
mobile: 415-533-1853

Reply all
Reply to author
Forward
0 new messages