English

GMQR

GMQR is a QGIS plugin that generates a Google Maps URL and QR code from a point you click on the map, or from a Google Maps URL you enter. Scan the QR code with your smartphone and Google Maps opens right away.

What you can do

Works offline too — generate the QR code on your PC even without internet, then scan it with a connected smartphone to open Google Maps or Street View instantly.

Requirements

ItemRequirement
QGIS3.22 or later (QGIS 4 supported)
Python3.x (bundled with QGIS)
InternetRequired only for "Open Google Maps"; QR generation works offline

Installation

  1. In QGIS, go to Plugins → Manage and Install Plugins
  2. Search for gmqr and click Install

Available on the official QGIS Plugin Repository:
https://plugins.qgis.org/plugins/gmqr/

Usage

1. Launch the plugin

Click the GMQR icon in the toolbar, or go to Plugins → GMQR → GMQR.
The dialog has two sections: ① Specify a place and ② Generated URL (which also holds the action buttons).

2. ① Specify a place

Choose one of the two tabs.

Select from map

  1. Click Select location to activate the map tool
  2. Click any point on the map
  3. A red cross is shown at the point, and the URL and QR code are generated in ②

Enter URL

  1. Type a Google Maps URL, or click Paste from clipboard
  2. The latitude / longitude are extracted and the URL and QR code are generated in ②
  3. Clear deletes the text in the URL box (the results in ② are kept)

Supported URL formats (the first one found is used):

PriorityFormatRed cross
1!3d{lat}!4d{lng} (pin position inside place URLs)Shown
2query={lat},{lng}Hidden
3center={lat},{lng}Hidden
4@{lat},{lng},{zoom}zHidden

The zoom level is read from @…,{zoom}z, z= or zoom=. Shortened links such as goo.gl or maps.app.goo.gl cannot be read — paste the full URL.

3. ② Generated URL

4. Buttons in ② Generated URL

ButtonAction
Copy URLCopy the generated URL to the clipboard
Open Google MapsOpen the URL in your default browser (internet required)
Move to URL locationMove the QGIS map to the current latitude / longitude. If the URL has a zoom level, the map scale is set to match; otherwise the scale is unchanged
Copy QR codeCopy the QR code image to the clipboard — paste directly into emails, chats, or SNS
Save QR codeSave the QR code as a PNG file
Add QR code to print layoutAdd the QR code image to an open print layout (see below)

Add the QR code to a print layout

  1. Open a print layout (Layout Designer) and generate a QR code in GMQR.
  2. Click Add QR code to print layout.
  3. The QR code is placed as a picture item at 10 mm, 10 mm from the top-left of the page, sized 30 mm × 30 mm. Move and resize it as you like.

Zoom level and map scale

Google Maps zoom levels (0–20) are mapped to QGIS scales (for example, zoom 15 = 1:18,056). The table is based on the equator at 96 dpi, so the scale may differ somewhat from Google Maps at higher latitudes.

Language toggle

Click the English / 日本語 button at the top of the dialog to switch the UI language instantly.

Links

Author & License

Author: Rei Ito
License: GNU GPL v2 or later


日本語

GMQR

GMQR は、QGISの地図上でクリックした地点、または入力したGoogleMapsのURLから GoogleMapsのURLとQRコードを自動生成 するプラグインです。 スマートフォンでQRコードを読み取れば、そのままGoogleMapsが開きます。

できること

オフライン環境でも使えます — PCがオフラインでもQRコードを生成し、 インターネットに繋がったスマートフォンで読み取ればGoogleMapsやStreetViewをすぐに開けます。

動作環境

項目要件
QGIS3.22 以上(QGIS 4 対応)
Python3.x(QGIS 同梱)
インターネット「GoogleMapsを開く」機能のみ必要。QRコード生成はオフラインで動作

インストール

  1. QGISのメニューから プラグイン → プラグインの管理とインストール を開く
  2. gmqr を検索してインストール

公式リポジトリで公開しています:
https://plugins.qgis.org/plugins/gmqr/

使い方

1. プラグインを起動する

ツールバーの GMQR アイコン、またはメニュー プラグイン → GMQR → GMQR をクリックします。
ダイアログに ① 場所を指定 と ② 生成URL(操作ボタンもここに含まれます)の2つの欄が表示されます。

2. ① 場所を指定する

2つのタブから選びます。

地図から選択

  1. 地点を選択 ボタンをクリックしてマップツールを有効にする
  2. 地図上の任意の地点をクリックする
  3. 地点に赤い十字が表示され、②にURLとQRコードが生成される

URLを入力

  1. GoogleMapsのURLを入力するか、クリップボードからコピー ボタンで貼り付ける
  2. 緯度・経度が読み取られ、②にURLとQRコードが生成される
  3. 削除 ボタンでURL欄の入力内容を消せる(②の結果は残ります)

対応するURL形式(上から順に探し、最初に見つかったものを使います):

優先順位形式赤い十字
1!3d{緯度}!4d{経度}(場所URLに含まれるピン位置)表示
2query={緯度},{経度}非表示
3center={緯度},{経度}非表示
4@{緯度},{経度},{zoom}z非表示

ズームレベルは @…,{zoom}z、z=、zoom= から読み取ります。 goo.gl / maps.app.goo.gl などの短縮URLは読み取れません。展開後のURLを貼り付けてください。

3. ② 生成URL

4. ② 生成URLのボタン

ボタン動作
URLをコピー生成したURLをクリップボードにコピー
GoogleMapsを開く既定のブラウザでGoogleMapsを開く(インターネット接続が必要)
URLの場所に移動現在の緯度・経度へQGISの地図を移動します。URLにズームレベルがあればその縮尺に合わせ、なければ縮尺は変えません
QRコードをコピーQRコード画像をクリップボードにコピー — メール・チャット・SNSにそのまま貼り付け可能
QRコードを保存QRコードをPNG形式で保存
印刷レイアウトにQRコードを追加QRコード画像を、開いている印刷レイアウトへ追加します(下記参照)

QRコードを印刷レイアウトに追加する

  1. 印刷レイアウト(レイアウトデザイナー)を開き、GMQRでQRコードを生成しておきます。
  2. 印刷レイアウトにQRコードを追加 をクリックします。
  3. QRコードは画像アイテムとして、ページ左上から 10mm, 10mm の位置に 30mm × 30mm で配置されます。位置とサイズは自由に変更できます。

ズームレベルと縮尺

GoogleMapsのズームレベル(0〜20)とQGISの縮尺を対応づけています(例:ズーム15 = 1:18,056)。 対応表は赤道上・96dpiを基準にしているため、高緯度ではGoogleMapsの縮尺と多少ずれることがあります。

言語切替

ダイアログ上部の English / 日本語 ボタンで UI 言語を即座に切り替えられます。

リンク

作者・ライセンス

Author: Rei Ito
License: GNU GPL v2 or later