Foursquare场所搜索(意图“浏览”)似乎不尊重categoryId

时间:2014-02-19 12:12:51

标签: foursquare

如果我提出此查询:

  

https://api.foursquare.com/v2/venues/search?categoryId=4e4c9077bd41f78e849722f9%2C4f4531084b9074f6e4fb0101%2C4bf58dd8d48988d1f7941735%2C4bf58dd8d48988d1fa941735%2C5032872391d4c4b30a586d64%2C4bf58dd8d48988d115951735%2C4bf58dd8d48988d1d3941735%2C4bf58dd8d48988d1ef941735%2C4bf58dd8d48988d116951735&client_id=DBYECJMGA0AB1XQP1GW5CV5WNXD4331IODMHARY5D3GSEOIB&intent=browse&limit=50&ne=43.802819%2C11.162109&sw=43.786958%2C11.140137&v=20131109&locale=en&client_secret=CLIENT_SECRET

我在其中指定了多个类别ID,我得到了这个结果:

  

{“meta”:{“code”:200},“response”:{“locues”:[{“id”:“4f3ccf34e4b030292acf2336”,“name”:“DI TUTTO DI PIU' - Mercatino usato”, “contact”:{},“location”:{“address”:“Via Manderi,62,50013 Campi Bisenzio FI”,“lat”:43.79576849102895,“lng”:11.15417380610575,“postalCode”:“50013”,“cc “:”IT“,”city“:”Campi Bisenzio“,”州“:”托斯卡纳“,”国家“:”意大利“},”类别“:[{”id“:”4bf58dd8d48988d127951735“,”名称“: “Arts& Crafts Store”,“pluralName”:“Arts& Crafts Stores”,“shortName”:“Arts& Crafts”,“icon”:{“prefix”:“https://ss1.4sqi.net /img/categories_v2/shops/artstore_","suffix":".png"},"primary":true}],"verified":false,"restricted":true,"stats":{"checkinsCount":16 “usersCount”:15, “tipCount”:2}, “特价”:{ “计数”:0, “项目”:[]} “此时此地”:{ “计数”:0, “基团”:[] }, “referralId”: “v-1392811869”}]}}

其中包含categoryId为4bf58dd8d48988d127951735(“Arts& Crafts Store”)的场地,该场地未包含在请求中。

1 个答案:

答案 0 :(得分:0)

您发布的紧凑场地结果仅显示场地的主要类别,即艺术和手工艺品商店。但是,如果您使用该会场ID运行场地详细信息呼叫,您可以看到该场地具有您搜索的跳蚤市场的二级类别ID。搜索匹配主要和次要类别ID