Geofilter search using soundcloud api

When I try to search for tracks based on the "geo" filter, I always return zero results. According to the documentation, you can use ***** as a template to search for the lat / lon ranges that exist in the "tag list" of each track in the server response. And we use a tag filter when issuing our POST request.

for instance

HttpResponse response = api.get("/tracks?tags=geo:lat%3D52.0*", null);

returns null results.

I also tried to exclude the link to the geo: 'namespace, tried all kinds of variations of the lat / lon string, for example ' lat = 52.0 '' geo: lat = 52.0 * ' . Tried urlencoded and non urlencoded values, nothing works.

If I just do

HttpResponse response = api.get("/tracks?tags=geo:", null);

This will return results that have a geographical location indicated in the tag list, so that there are tracks in the database that have been tagged with geo! I copied one of these geo places: from a random track to the api request POST parameters and could not find the track.

Another person who, as far as I know, filed this problem on SO a month ago using the JQuery Soundcloud api: geo-text search does not work

Any help would be greatly appreciated.

(FYI the null parameter in the code that I use above is just another option to pass the message parameters, you have the choice to use the NameValuePair object, Ive tried this as well, but was not successful [when searching by geofilters])

+5
source share
1 answer

This should work

HttpResponse response = api.get("/tracks?geo:lat%3D52.0*", null);
0
source

All Articles