legacy-api-documentation
legacy-api-documentation copied to clipboard
Documentation: Example needed for the new geo parameter element in photos/search
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
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 :)
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.