我想使用FourSquare api,但我很想知道如何判断一家餐馆是否属于特许经营权?像所有星巴克/麦当劳一样,他们将成为他们特定特许经营权的一部分。
答案 0 :(得分:0)
Foursquare提供有关餐厅是否属于连锁店的信息。但是,只有当餐馆连锁店的所有者注册了他们的业务,即在Foursquare上创建了关于商业的页面时,才能获得此信息。
场地详细信息API会显示API响应中的页面字段。这包含餐馆连锁信息。
https://developer.foursquare.com/docs/api/venues/details
以下是必胜客西雅图场地细节的摘要。
"page": {
"pageInfo": {
"description": "Follow Pizza Hut on Foursquare and check in to your local store to share your love for pizza with all of your friends!",
"banner": "https://is1.4sqi.net/userpix/WPQD1CUUGRQ510FD.jpg",
"links": {
"count": 1,
"items": [
{
"url": "http://order.pizzahut.com"
}
]
}
},
"user": {
"id": "910282",
"firstName": "Pizza Hut",
"gender": "none",
"photo": {
"prefix": "https://igx.4sqi.net/img/user/",
"suffix": "/910282-FGR40Q3CQH0CGF3N.png"
},
"type": "chain",
"tips": {
"count": 3810
},
"lists": {
"groups": [
{
"type": "created",
"count": 2,
"items": []
}
]
},
"homeCity": "Dallas, TX",
"bio": "",
"contact": {
"twitter": "pizzahut"
}
}
}
选中它包含类型字段,其值为链