$GeoLocationCountry
$GeoLocationの現行設定についての国実体を与える.
例題
すべて開く すべて閉じる例 (1)
アプリケーション (2)
特性と関係 (3)
$GeoLocationCountryは,ユーザの現行の$GeoLocationに最も近い国を与える:
$GeoLocation$GeoLocationCountry$GeoLocationCityは,ユーザの現行の$GeoLocationに最も近い町を与える:
$GeoLocationCity$GeoLocationCountryは,GeoNearestコールを使って現行位置に最も近い国を求める:
GeoNearest["Country", GeoPosition[{50, 60}]]$GeoLocationの値を一時的にブロックして,自分がその場所にいるようなふりをする:
Block[{$GeoLocation = GeoPosition[{50, 60}]},
$GeoLocationCountry
]$GeoLocationCountryは,たとえ$GeoLocationが海に置かれていても自動的に設定される:
$GeoLocation = GeoPosition[{0, 0}]$GeoLocationCountryGeoGraphics[{GeoMarker[$GeoLocation], Polygon[$GeoLocationCountry]}]現行の$GeoLocationをリセットする:
$GeoLocation = FindGeoLocation[]考えられる問題 (1)
$GeoLocationCountryは,$GeoLocationと無関係に設定することはできない:
$GeoLocationCountry = Entity["Country", "UnitedStates"]代りに,$GeoLocationをその町の中の場所に設定する:
$GeoLocation = GeoPosition[Entity["City", {"NewYork", "NewYork", "UnitedStates"}]]$GeoLocationCountryは自動的に設定される:
$GeoLocationCountryユーザの現行の$GeoLocationをリセットする:
$GeoLocation = FindGeoLocation[]テクニカルノート
関連するガイド
-
▪
- 測地学 ▪
- クラウド関数と配備 ▪
- フォームインターフェースとアプリの作成 ▪
- 即時APIの作成 ▪
- クラウド実行のメタデータ ▪
- 地理データと実体
テキスト
Wolfram Research (2014), $GeoLocationCountry, Wolfram言語関数, https://reference.wolfram.com/language/ref/$GeoLocationCountry.html.
CMS
Wolfram Language. 2014. "$GeoLocationCountry." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$GeoLocationCountry.html.
APA
Wolfram Language. (2014). $GeoLocationCountry. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$GeoLocationCountry.html
BibTeX
@misc{reference.wolfram_2026_$geolocationcountry, author="Wolfram Research", title="{$GeoLocationCountry}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/$GeoLocationCountry.html}", note=[Accessed: 25-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$geolocationcountry, organization={Wolfram Research}, title={$GeoLocationCountry}, year={2014}, url={https://reference.wolfram.com/language/ref/$GeoLocationCountry.html}, note=[Accessed: 25-August-2026]}