[英]Foursquare - How to get more than 100 venues using foursquare API?
[英]how to filter the venues from foursquare api using the price parameter
$params = array(
"ll" => "$lat,$lng",
"llAcc" => "100000", //"100";
"radius"=> "100000",
"categoryId"=>"4d4b7105d754a06374d81259",
"venuePhotos" => 1,
"price" => $price,
"sortByDistance" => 1,
"limit" => $limit,
"offset" => $offset,
"intent" => "global"
);
$response = $this->foursquareapi->GetPublic("venues/explore",$params);
是否可以使用price參數過濾場地,或者采用其他方式?
根據我的經驗,價格參數不適用於所有國家/地區。 它適用於來自某些國家(例如美國,奧地利,比利時,美國)的場地。 但與此同時,它不適用於澳大利亞,印度等國家/地區的場館。
根據explorer api端點價格,應按以下方式使用:
用逗號分隔的價目表。 當前,價格點的有效范圍是[1,2,3,4],其中1是最便宜的,4是最貴的。 對於餐飲場所,在美國,1個主菜<$ 10,2個主菜$ 10- $ 20,3個主菜$ 20- $ 30,4個主菜$ 30。
因此,如果您將相關值傳遞給價格鍵,則應該在適當時返回經過過濾的地點
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.