ジオゲッサーのめもを記録するリポジトリ。GeoGuessrのめものソースコードと画像です。
国と地域を当てるためのヒントをめもしたり、関連サイトへのリンクをまとめたりするページです。以下はページ例です。
ナンバープレートは基本的にWikimediaより引用しています。各ページ上に表示されている出典を確認してください。 標識について、ウェブ上に出典の記載がないものはCC0・パブリックドメイン・自分が編集し自作した画像のいずれかです。各国の名前が付いたフォルダ以下の「r」というフォルダ以下に標識の画像があります。
保存先のフォルダの例
- スウェーデンの標識:content/rule/europe/sweden/r
- 香港の標識:content/rule/asia/hongkong/r
- カナダの標識:content/rule/n_america/canada/r
- 標識の画像はパブリックドメイン・CC0・国ごとのライセンス的にokなものに限定する
- ニュージーランド:Sign specifications
- イギリス:Open Government Licence v1.0
- ナンバープレートの画像を引用する場合は出典を示す必要がないとしてもライセンスと出典を示すこと
- ライセンスを書き忘れたかどうかを後から判断するのが難しくなるため
- Google Map・Street View
- Google マップ & Google Earth ガイドライン
- Googleストリートビューのスクリーンショットは使用しないこと
- Google Mapsを引用する場合は必ず画像の近くにソースへのリンクを貼ること
scripts/hooks/ 配下に、個人情報・APIトークン等の誤コミットを防ぐ pre-commit フックを置いています。
npm install 時に自動で git config core.hooksPath scripts/hooks が設定されます。
別マシンで clone した直後に手動で有効化したい場合は次のいずれか:
# 推奨:npm script から
npm run install-hooks
# または直接シェルスクリプトを実行
bash scripts/hooks/install.sh| 種類 | 動作 | 例 |
|---|---|---|
| API トークン・秘密鍵 | コミット中止 | AKIA… (AWS), ghp_… (GitHub), xoxb-… (Slack), sk_live_… (Stripe), AIza… (Google), JWT, PEM 形式の秘密鍵 |
| クレジットカード番号 | コミット中止 | 13–19 桁で Luhn チェックに合格するもの |
| 機密ファイル名 | コミット中止 | .env, id_rsa, *.pem, *.key, *.p12, credentials.json, .netrc 等 |
.ngwords 記載のNGワード |
コミット中止 | 既存の振る舞いを継続 |
| メール/電話/郵便番号/12桁数値 | 警告のみ(コミット可) | 誤検知が多いため |
| NUL バイト | 自動除去してから add | ステージ済みテキストファイルから |
.piiallowlistにファイル名や文字列の正規表現を 1 行 1 件で追加すると、その値はスキャン対象から除外されます。- 既に
example.comドメインなどは標準で許可済み。 - 緊急時は
git commit --no-verifyでフックをバイパスできます(最小限に留めること)。
scripts/hooks/check_pii.py は単独で実行することもでき、ステージ済みの差分を直接スキャンします:
python3 scripts/hooks/check_pii.py問題点やミスを見つけた場合はissueを立てていただけると嬉しいです。また連絡はissueかtwitterのDMなどで受け付けています。
Personalized Google Street View pinning page(since 2023/02).
Pages to note down tips for guessing the country and to compile links to related sites.
- Images of signs must be in the public domain only.
- Images of New Zealand signs are available from Sign specifications.
- When citing license plate images, indicate the license name and the source of the citation even if the source does not need to be indicated.
- in order to determine whether I forgot to write license name.
- Maps, Street View, Earth
- Google Maps & Google Earth Guidelines
- Do NOT use Google Street View screenshots
- When citing Google Maps, always link to the source near the image.
If you notice a problem, please report it via issue. I appreciate any help you can provide.