コンソールにログイン
APIの有効化
APIを利用するには「有効にする」をクリック
APIキーの生成
APIのサンプル (Maps Static APIの例)
おやきの店うしこしのマップ
key=のところに、先ほど取得したAPIキーを指定する。
例
埋め込みマップの場合 (iframe)
<iframe
width="600"
height="450"
style="border:0"
loading="lazy"
allowfullscreen
src="https://www.google.com/maps/embed/v1/place?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
&q=36.30403066476505, 137.93165161571605">
</iframe>
Googleマップ v2からv3にアップグレード方法