MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/API

prop=coordinates (co)

(main | query | coordinates)
  • このモジュールは読み取りの権限を必要とします。
  • 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. (Properties that are always returned: lat, lon, and either primary or secondary as a boolean flag.)

type
Type of the object the coordinates point to. See mw:Extension:GeoData#Usage for details.
name
Name of the object.
dim
Approximate size of the object in meters.
country
ISO 3166-1 alpha-2 country code (e.g. US or RU).
region
ISO 3166-2 region code (the part of the ISO 3166-2 code after the dash; e.g. FL or MOS).
globe
Which terrestrial body the coordinates are relative to (e.g. moon or pluto). Defaults to Earth. See mw:Extension:GeoData#Glossary for details.
値 (|もしくは別の文字列で区切る): typenamedimcountryregionglobe
既定値: globe
coprimary

Which kind of coordinates to return.

primary
The location of the subject of the article. There is at most one primary coordinate per title.
secondary
The location of some object that's mentioned in the article. Any number of secondary coordinates can be associated with a title.
all
Return both primary and secondary coordinates.
値 (次の値のいずれか1つ): primarysecondaryall
既定値: 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.