shuhelohelo’s blog

Xamarin.Forms多めです.

Google Map APIキーの取得

docs.microsoft.com

Google APIsのページを開く.

console.developers.google.com

新しいプロジェクトを作成する.

f:id:shuhelohelo:20191231221546p:plain

プロジェクト名,組織名(あれば)を決めて「作成」ボタンを押す.

f:id:shuhelohelo:20191231221630p:plain

先程作成したプロジェクトを選択する.

f:id:shuhelohelo:20191231221815p:plain

左上のハンバーガーメニューから,ダッシュボードへ移動する.

f:id:shuhelohelo:20191231222125p:plain

APIとサービスを有効化」を選択.

f:id:shuhelohelo:20191231222155p:plain

まずは「Maps SDK for Android」を選択.

f:id:shuhelohelo:20191231222409p:plain

「有効にする」をクリック.

f:id:shuhelohelo:20191231222445p:plain

APIとサービスの認証情報」というリンクをクリック.

f:id:shuhelohelo:20191231222708p:plain

「認証情報を作成」というプルダウンから「APIキー」を選択.

f:id:shuhelohelo:20191231222750p:plain

これでAPIキーが作成される.

f:id:shuhelohelo:20191231222904p:plain

「キーを制限」をクリックする.

以下の用な感じで適宜キーの使用に制限を加える.

Androidアプリから,Maps SDK for Androidのみを利用できるようにしている.

保存を押す.

f:id:shuhelohelo:20191231223238p:plain

あとはアプリケーションの然るべき場所にAPIキーを設定すればOKです.