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 venue search (intent "browse") does not seem to honor categoryId
-
13-10-2022 - |
Вопрос
if I make this query:
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","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"}]}}
which contains a venue whose categoryId is 4bf58dd8d48988d127951735 ("Arts & Crafts Store"), which is not included in the request.
Решение