MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
prop=coordinates (co)
- このモジュールは読み取りの権限を必要とします。
- Source: GeoData
- License: WTFPL
Returns coordinates of the given pages.
パラメーター:
- colimit
How many coordinates to return.
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- 既定値: 10
- cocontinue
When more results are available, use this to continue.
- coprop
Which additional coordinate properties to return.
- 値 (|もしくは別の文字列で区切る): type、name、dim、country、region、globe
- 既定値: globe
- coprimary
Whether to return only primary coordinates ("primary"), secondary ("secondary") or both ("all").
- 値 (次の値のいずれか1つ): primary、secondary、all
- 既定値: primary
- codistancefrompoint
Return distance in meters from the geographical coordinates of every valid result from the given coordinates.
Format: Latitude and longitude separated by pipe ("|").
- codistancefrompage
Return distance in meters from the geographical coordinates of every valid result from the coordinates of this page.
例:
- Get a list of coordinates of the Main Page
- api.php?action=query&prop=coordinates&titles=Main%20Page [サンドボックスで開く]