duandou1903 2014-07-18 11:57
浏览 63

如何使用price参数从foursquare api过滤场地

$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);

Is it possible to filter the venues using the price parameter or what is the other way??

Price parameter does not work for all the countries as per my experience. It works for venues from certain countries like united kingdom,austria,belgium,united states. But same time it does not work for the venues from the countries like Australia,India,etc.

  • 写回答

1条回答 默认 最新

  • dongyou8701 2014-07-31 09:58
    关注

    According to the explore api endpoint price should be used as following:

    Comma separated list of price points. Currently the valid range of price points are [1,2,3,4], 1 being the least expensive, 4 being the most expensive. For food venues, in the United States, 1 is < $10 an entree, 2 is $10-$20 an entree, 3 is $20-$30 an entree, 4 is $30 an entree.

    As such, if you are passing in the relevant values to your price key it should be returning filtered venues as appropriate

    评论

报告相同问题?

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程