[英]Autocomplete textview google places api description -> place_id
[英]What is a place or place_id (for testing purposes) in Google Places API that has associated html_attributions?
我們正在使用Google商家信息地圖詳細信息API (更具體地說, Google Maps Javascript API )。 作為使用條款的一部分,我們必須在響應中顯示html_attributions
的值(如果存在)。
但是,試圖測試我們的實現,我有找到一個困難place
為其PlacesService.getDetails()
響應中包含的非空值html_attributions
。
是否有一個樣本place_ids的參考頁面或Place Details API將返回非空html_attributions
?
如以下文檔中所述, 如果您從Google重現任何內容,則必須包含三種類型的歸因。
由於您從谷歌地圖獲取數據,因此他們已經顯示了地圖和徽標。
但是如果有的話,你需要第三方歸屬。 html-attributions
包含示例中提到的第三方列表
"html_attributions" : [
"Listings by \u003ca href=\"http://www.example.com/\"\u003eExample Company\u003c/a\u003e"
]
由於幾乎所有的地方數據都不需要歸因,因為數據是由谷歌本身檢索的,因此它們不包含任何attributions
。
一個簡單的例子是照片所需的html_attributions
,因為它們主要由第三方托管,因此它們的歸屬顯示在所有位置 。
文檔中提到了有關如何獲取屬性的其他詳細信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.