Foursquare场所搜索(意图“浏览")似乎不支持categoryId [英] Foursquare venue search (intent "browse") does not seem to honor categoryId
问题描述
如果我进行以下查询:
在其中指定了多个类别ID的情况下,我得到了以下结果:
in which I specify multiple category IDs, I get back this result:
{"meta":{"code":200},"response":{"venues":[{"id":"4f3ccf34e4b030292acf2336","name":"DI TUTTO DI PIU'-Mercatino usato",联系人":{},位置":{地址":"Via Manderi,62,50013 Campi Bisenzio FI","lat":43.79576849102895,"lng":11.15417380610575,邮政编码":"50013","cc:" IT,"城市:" Campi Bisenzio,"州:"托斯卡纳,"国家:"意大利},"类别:[{" id:" 4bf58dd8d48988d127951735,"名称:工艺品商店",复数名称":工艺品商店",简称":工艺品",图标":{前缀":"https://ss1.4sqi.net/img/categories_v2/shops/artstore_,"后缀:".png}," primary:true}]," verified:false," restricted:true," stats:{" checkinsCount:16,"usersCount":15,"tipCount":2},"specials":{"count":0,"items":[]},"hereNow":{"count":0,"groups":[]},"referralId":"v-1392811869"}]}}
{"meta":{"code":200},"response":{"venues":[{"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","state":"Tuscany","country":"Italy"},"categories":[{"id":"4bf58dd8d48988d127951735","name":"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},"specials":{"count":0,"items":[]},"hereNow":{"count":0,"groups":[]},"referralId":"v-1392811869"}]}}
包含一个类别ID为4bf58dd8d48988d127951735(工艺品商店")的场所,该场所未包含在请求中.
which contains a venue whose categoryId is 4bf58dd8d48988d127951735 ("Arts & Crafts Store"), which is not included in the request.
推荐答案
您发布的紧凑型场所结果仅显示了场所的主要类别,即工艺品商店.但是,如果您使用该场所ID运行场所详细信息呼叫,则可以看到该场所具有您搜索的跳蚤市场的次级类别ID.搜索在主要和次要类别ID上都匹配
The compact venue result that you posted is only showing the primary category of the venue, which is an arts and crafts store. However, if you run a venue details call with that venue ID, you're able to see that the venue has a secondary category ID of flea market, which you searched for. The search matches on both primary and secondary category IDs
这篇关于Foursquare场所搜索(意图“浏览")似乎不支持categoryId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!