[英]Will this specific method of dynamically embedding Google Maps without API key work for 1000s of page views?
隨着2018年Google Maps定價的變化,我們無法像迄今為止一樣使用它。 我們正在考慮遷移到另一個提供程序,但還發現了一種無需提供API密鑰即可嵌入地圖的可行方法:
<div style="width: 100%">
<iframe width="100%" height="600"
src="https://maps.google.com/maps?output=embed&width=100%&height=600&hl=en&q=1600%20Pennsylvania%20Ave%20NW%2C%20Washington%2C%20DC%2020006%2C%20USA+(Example%20Address)&ie=UTF8&t=&z=16&iwloc=B"
frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
</div>
筆記:
iframe
加載地圖的方法似乎無法正常工作。 (例外:通過在Google地圖上單擊“共享”生成的URL,其格式為<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!...other params that only Google knows how to generate here...></iframe>
-顯然我們無法手動完成此操作。) 我們的問題:
您示例中的iframe是使用maps.google.com上的消費者應用程序生成的。 請注意,網站maps.google.com與Google Maps API沒有關系。 這些是由Google的不同團隊管理的不同產品。
在maps.google.com上生成iframe時,它不使用API,因此不需要任何API密鑰。
Google Maps網站的此功能記錄在
https://support.google.com/maps/answer/144361
據我所知,這類iframe沒有每日限制。
我希望這有幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.