我希望(在网站内)显示通过Google MyBusiness / Places管理的大量全球店面的营业时间。在为Google Place条目发出API请求时,它将按如下方式返回营业时间:
"opening_hours" : {
"open_now" : true,
"periods" : [
{
"close" : {
"day" : 0,
"time" : "2200"
},
"open" : {
"day" : 0,
"time" : "0900"
}
},
{
"close" : {
"day" : 1,
"time" : "2200"
},
"open" : {
"day" : 1,
"time" : "0900"
}
},
{
"close" : {
"day" : 2,
"time" : "2200"
},
"open" : {
"day" : 2,
"time" : "0900"
}
},
{
"close" : {
"day" : 3,
"time" : "2200"
},
"open" : {
"day" : 3,
"time" : "0900"
}
},
{
"close" : {
"day" : 4,
"time" : "2200"
},
"open" : {
"day" : 4,
"time" : "0900"
}
},
{
"close" : {
"day" : 5,
"time" : "2200"
},
"open" : {
"day" : 5,
"time" : "0900"
}
},
{
"close" : {
"day" : 6,
"time" : "2200"
},
"open" : {
"day" : 6,
"time" : "0900"
}
}
],
"weekday_text" : [
"Monday: 9:00 AM – 10:00 PM",
"Tuesday: 9:00 AM – 10:00 PM",
"Wednesday: 9:00 AM – 10:00 PM",
"Thursday: 9:00 AM – 10:00 PM",
"Friday: 9:00 AM – 10:00 PM",
"Saturday: 9:00 AM – 10:00 PM",
"Sunday: 9:00 AM – 10:00 PM"
]
},
但是,如果您通过Google网络搜索或Google地图搜索搜索相同的地点,如果当地假日可能会影响营业时间,则会添加提示:
有没有办法通过Places API访问这些信息,这些信息没有明显记录?
答案 0 :(得分:0)
遗憾的是,它看起来并不像API那样可用。我确实发现使用Google商家信息的商家所有者可以update their business hours度假。它可能只在他们的页面上可用(地图,地点),而不会在API中公开。