legacy-api-documentation icon indicating copy to clipboard operation
legacy-api-documentation copied to clipboard

Documentation: Example needed for the new geo parameter element in photos/search

Open jgheyssens opened this issue 11 years ago • 2 comments

Could it be possible to get an example of the url to use with the new geo query functionality. Trying to use it, it does not seem to work. I certainly do something with the geo-location parameter (structure latitude,longitude,range) but not having an example, it is difficult to assess where. Also apigee does not seem to be updated with this new version of the API.

jgheyssens avatar Jun 26 '13 08:06 jgheyssens

to answear your question, api500px.photos.searchByTerm(searchTem, {'page':currentPage,'order':'votes', 'geo': ["40.582214","-73.94136","5km"], 'rpp': 20, 'image_size':'1', 'sort':'times_viewed'}, function(err, result) {.........

'geo': ["40.582214","-73.94136","5km"] ^^^ for any term, it will bring results in that radius

please close :)

vachi avatar Aug 06 '13 20:08 vachi

HI there. I am currently using the JavaScript SDK and this really isn't working for me. I'm calling it like this: _500px.api('/photos/search', { geo: [latitude, longitude, searchRadius], image_size: 600} but i keep getting a 500 error. Any thoughts on what i'm doing wrong? All the variables are defined and correct, as is my key. All other calls work fine, just this one doesn't.

theirnameissam avatar Sep 20 '15 14:09 theirnameissam