受地缘滤波器soundcloud API搜索 [英] Search by geo filter with soundcloud api

查看:179
本文介绍了受地缘滤波器soundcloud API搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在试图基于全球环境展望过滤我总是回零结果搜索曲目。根据该文件,你可以使用 * 作为通配符纬度搜索存在于服务器响应每个轨道的标记列表/经度范围。我们发布我们的POST请求时,使用标签过滤器。

When attempting to search for tracks based on 'geo' filter I always get back zero results. According to the documentation you can use * as a wildcard to search lat/lon ranges that exist in the 'tag-list' of each track in the server response. And we use the 'tags' filter when issuing our POST request.

例如

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

返回结果为零。

returns zero results.

我也曾尝试省略GEO:'命名空间参考,试过各种纬度/经度线的变化,例如土地增值税= 52.0''地理:土地增值税= 52.0 *'。尝试都urlen codeD和非urlen codeD值,似乎没有任何工作。

I have also tried omitting the 'geo:' namespace reference, tried all sorts of variations of the lat/lon string for example 'lat=52.0' 'geo:lat=52.0*'. Tried both urlencoded and non urlencoded values, nothing seems to work.

如果我只是做

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

这将带回具有标签列表中引用的地理定位结果,所以在已经进行地理标记,要确保数据的基础上轨!我抄这些地缘之一:从一个随机道位置到API请求的POST PARAMS和它没有找到曲目

This will bring back results that have a geo location referenced in the tag list, so there are tracks in the data base that have been geo tagged for sure! I have copied one of these geo: locations from a random track into the POST params of the api request and it doesnt find the track.

多一个人就我所知,已经提交的所以这个问题在一个月前,使用JQuery <一href="http://stackoverflow.com/questions/15233098/soundcloud-api-geo-tag-search-not-working">Soundcloud API:地理标记搜索不能正常工作

One more person to my knowledge has filed this issue on SO a month ago, using JQuery Soundcloud api: Geo Tag search not working

任何帮助将是很大的AP preciated。

Any help would be greatly appreciated.

(仅供参考在code我用上面的空参数是传递后参数的另一种选择,你必须使用的NameValuePair对象的选择,我已经尝试过这种方式太多,但没有成功[搜索时,在地缘过滤器])

(FYI the null parameter in the code I use above is just another option of passing The post parameters, you have the choice to use A NameValuePair Object, Ive tried it this way too but had no success [when searching on geo filter])

推荐答案

这应该工作

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

这篇关于受地缘滤波器soundcloud API搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆