2012-03-06 65 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