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.
| Item | Requirement |
|---|---|
| QGIS | 3.22 or later (QGIS 4 supported) |
| Python | 3.x (bundled with QGIS) |
| Internet | Required only for "Open Google Maps"; QR generation works offline |
Available on the official QGIS Plugin Repository:
https://plugins.qgis.org/plugins/gmqr/
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).
Choose one of the two tabs.
Supported URL formats (the first one found is used):
| Priority | Format | Red cross |
|---|---|---|
| 1 | !3d{lat}!4d{lng} (pin position inside place URLs) | Shown |
| 2 | query={lat},{lng} | Hidden |
| 3 | center={lat},{lng} | Hidden |
| 4 | @{lat},{lng},{zoom}z | Hidden |
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.
https://www.google.com/maps/place/{lat},{lng}/@{lat},{lng},{zoom}z| Button | Action |
|---|---|
| Copy URL | Copy the generated URL to the clipboard |
| Open Google Maps | Open the URL in your default browser (internet required) |
| Move to URL location | Move 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 code | Copy the QR code image to the clipboard — paste directly into emails, chats, or SNS |
| Save QR code | Save the QR code as a PNG file |
| Add QR code to print layout | Add the QR code image to an open print layout (see below) |
<project folder>/gmqr_qr/ if the project has been saved, otherwise in the QGIS settings folder (…/gmqr/qr/).
File name: gmqr_YYYYMMDD_HHMMSS_{lat}_{lng}.png. Keep this folder together with the project.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.
Click the English / 日本語 button at the top of the dialog to switch the UI language instantly.
Author: Rei Ito
License: GNU GPL v2 or later
GMQR は、QGISの地図上でクリックした地点、または入力したGoogleMapsのURLから GoogleMapsのURLとQRコードを自動生成 するプラグインです。 スマートフォンでQRコードを読み取れば、そのままGoogleMapsが開きます。
| 項目 | 要件 |
|---|---|
| QGIS | 3.22 以上(QGIS 4 対応) |
| Python | 3.x(QGIS 同梱) |
| インターネット | 「GoogleMapsを開く」機能のみ必要。QRコード生成はオフラインで動作 |
公式リポジトリで公開しています:
https://plugins.qgis.org/plugins/gmqr/
ツールバーの GMQR アイコン、またはメニュー プラグイン → GMQR → GMQR をクリックします。
ダイアログに ① 場所を指定 と ② 生成URL(操作ボタンもここに含まれます)の2つの欄が表示されます。
2つのタブから選びます。
対応するURL形式(上から順に探し、最初に見つかったものを使います):
| 優先順位 | 形式 | 赤い十字 |
|---|---|---|
| 1 | !3d{緯度}!4d{経度}(場所URLに含まれるピン位置) | 表示 |
| 2 | query={緯度},{経度} | 非表示 |
| 3 | center={緯度},{経度} | 非表示 |
| 4 | @{緯度},{経度},{zoom}z | 非表示 |
ズームレベルは @…,{zoom}z、z=、zoom= から読み取ります。
goo.gl / maps.app.goo.gl などの短縮URLは読み取れません。展開後のURLを貼り付けてください。
https://www.google.com/maps/place/{lat},{lng}/@{lat},{lng},{zoom}z| ボタン | 動作 |
|---|---|
| URLをコピー | 生成したURLをクリップボードにコピー |
| GoogleMapsを開く | 既定のブラウザでGoogleMapsを開く(インターネット接続が必要) |
| URLの場所に移動 | 現在の緯度・経度へQGISの地図を移動します。URLにズームレベルがあればその縮尺に合わせ、なければ縮尺は変えません |
| QRコードをコピー | QRコード画像をクリップボードにコピー — メール・チャット・SNSにそのまま貼り付け可能 |
| QRコードを保存 | QRコードをPNG形式で保存 |
| 印刷レイアウトにQRコードを追加 | QRコード画像を、開いている印刷レイアウトへ追加します(下記参照) |
<プロジェクトのフォルダ>/gmqr_qr/、未保存ならQGISの設定フォルダ(…/gmqr/qr/)。
ファイル名は gmqr_YYYYMMDD_HHMMSS_{緯度}_{経度}.png です。このフォルダはプロジェクトと一緒に保管してください。GoogleMapsのズームレベル(0〜20)とQGISの縮尺を対応づけています(例:ズーム15 = 1:18,056)。 対応表は赤道上・96dpiを基準にしているため、高緯度ではGoogleMapsの縮尺と多少ずれることがあります。
ダイアログ上部の English / 日本語 ボタンで UI 言語を即座に切り替えられます。
Author: Rei Ito
License: GNU GPL v2 or later