簡體   English   中英

這種無需API密鑰即可動態嵌入Google Maps的特定方法是否可用於數千次頁面瀏覽?

[英]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&amp;width=100%&amp;height=600&amp;hl=en&amp;q=1600%20Pennsylvania%20Ave%20NW%2C%20Washington%2C%20DC%2020006%2C%20USA+(Example%20Address)&amp;ie=UTF8&amp;t=&amp;z=16&amp;iwloc=B"
    frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
</div>

筆記:

  • 每天,我們有數千個針對不同地址的頁面瀏覽量。
  • 我們找不到這種顯示Google記錄的地圖的方式。
  • 沒有API密鑰,其他在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> -顯然我們無法手動完成此操作。)

我們的問題:

  • 為什么Google保留了這種無需API密鑰即可自由嵌入動態Google Maps的方法?
  • 是否有要求限制(例如每天100個)?
  • 是否有一些文檔在此?

您示例中的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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM