ios - 从 iOS 中的 GMSPlace 获取营业时间

标签 ios google-places-api google-places gmsplace

有没有办法在 iOS SDK 中获取 GMPlace 的开放时间?

我只能找到 - (GMSPlacesOpenNowStatus) openNowStatus [read, assign] 不包含开放时间,无论如何看起来有问题并且总是返回“未知”(引用:https://code.google.com/p/gmaps-api-issues/issues/detail?id=8160)。

查找 iOS 是查找营业时间,而不是使用检索到的 placeID 从 iOS 向 Web API 发出 GET 请求。

最佳答案

Google Maps API 仅返回以下信息:https://developers.google.com/maps/documentation/ios-sdk/reference/interface_g_m_s_place#properties

我检查了 MapKit API,它也没有返回任何类似的东西。

也许试试 Google 搜索 API?我知道在某些情况下,您在进行 google.com 搜索时会返回该信息。 https://developers.google.com/custom-search/docs/xml_results#overview

关于ios - 从 iOS 中的 GMSPlace 获取营业时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37450079/

相关文章:

google-maps - Google Place Autocomplete API 显示无效地址

ios - 如何让谷歌在 swift 中放置标记纬度和经度

ios - Autolayout - 设置框架宽度和宽度作为约束之间的差异

ios - 将位置设置从 'Always' 更改为 'when in use' 在后台时不会继续位置跟踪

objective-c - 从另一个 ViewController 调用一个 ViewController 的实例方法

google-maps-api-3 - Google Places API 这是否违反了 TOC?

ios - 如何在没有 CocoaPods 的情况下获取 Google 地方信息的 swift 二进制文件?

ios - 可本地化的字符串!!!! bundle (路径)尚未加载

android - 如何在android应用程序中处理google place API的 "status"="OVER_QUERY_LIMIT"

ios - 升级到 Xcode 8 和 Swift 3.0 后使用 Google Places iOS SDK 出现无法解释的异常