> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# コンソールの所在地の判定

> 位置情報に対応した GDK タイトルのために、パッケージ マニフェストに依存せず、XBOX コンソールに設定されている国と地域を実行時に取得します。

パッケージ マニフェストに依存せず、コンソールに設定されている国を取得するには、[`GetUserDefaultGeoName`](https://learn.microsoft.com/windows/win32/api/winnls/nf-winnls-getuserdefaultgeoname) を使用します。ここでの「ユーザー」とは、単にサインイン中のセッションのことであり、この API はコンソールに設定されている国を返します。

<Note>
  `GetUserDefaultGeoName` は、`GetUserDefaultLocaleName` が返すロケールが `en-GB` である場合に有用です。いくつかの国では簡略化のため英国英語ロケールを使用しており (サウジアラビア、UAE、チェコ共和国、ハンガリー、スロバキア、ギリシャ)、ジオ名によりそれらを区別できます。
</Note>

## 関連項目

* [GetUserDefaultGeoName](https://learn.microsoft.com/windows/win32/api/winnls/nf-winnls-getuserdefaultgeoname)
* [GetUserDefaultLocaleName](https://learn.microsoft.com/windows/win32/api/winnls/nf-winnls-getuserdefaultlocalename)

## 関連 API ドキュメント

* [XGameRuntime features リファレンス](/reference/system/xgameruntimefeature/xgameruntimefeature_members) — `XSystemGetXboxLiveSandboxId`、リージョン対応ランタイム API
* [XUser API リファレンス](/reference/system/xuser/xuser_members) — サインイン ユーザーの国／地域のクエリ


## Related topics

- [コンソールのロケールと言語の判定](/ja-jp/build/game-principles/localization/determining-console-locale.md)
- [ローカライズとグローバライゼーションの概要](/ja-jp/build/game-principles/localization.md)
- [XBOX Manager: コンソールの更新](/ja-jp/tools/tools-console/xbom/manager-tool-updating-console.md)
- [XBOX コンソールのポートの動作](/ja-jp/build/console-features/networking/game-mesh/xbox-console-port-behavior.md)
- [XBOX Manager: コンソールとグループの管理](/ja-jp/tools/tools-console/xbom/manager-tool-groups.md)
