2012-03-06 47 views
1

我如何在场地搜索方法中放置半径?Foursquare中的半径场馆搜索

Result<VenuesSearchResult> result = foursquareApi.venuesSearch(LAT_LONG, null, null, null, "clothing", 20, null, null, null, null, null); 

半径没有特别提及任何地方venuesSearch中()的参数:

结果fi.foyt.foursquare.api.FoursquareApi.venuesSearch(字符串LL,双llAcc,双ALT,双altAcc ,查询字符串,整数限制,字符串意图,字符串categoryId,URL字符串,字符串providerId,字符串linkedId)抛出FoursquareApiException

难道这就是字符串意图里面放?如何?

顺便提一下,半径是在Foursquare docs中提到的。

我正在使用此库:Foursquare API Java,这也是Foursquare本身提出的建议。

回答

0

您需要联系您用于更新接受该字段的方法的任何android库的维护者。或者,您可以编辑您的本地副本并向维护人员发送建议的修补程序。

+0

好吧,我使用的Java下列出的唯一库:https://developer.fo ursquare.com/resources/libraries。那么在目前的形式下,不可能设置半径?有人与该图书馆合作吗? – Marat 2012-03-07 18:33:28

0

它可以帮助你。

https://developer.foursquare.com/docs/venues/search

也看到这个

getFoursquareApi()。venuesSearch(LL,llAcc,ALT,altAcc,查询,限制,意图的categoryId,网址,providerId,linkedId)

使用这些在您的应用程序jar文件:

四方-API-1.0.0.jar

+0

我正在使用这个jar文件。虽然在Android ICS中有GET/POST问题...我希望Foursquare会照顾他们的API ... – Marat 2012-04-14 22:40:31