Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=coordinates (co)

(main | query | coordinates)
  • Ten moduł wymaga praw odczytu.
  • Źródło: GeoData
  • Licencja: WTFPL

Returns coordinates of the given pages.

Parametry:
Other general parameters are available.
colimit

How many coordinates to return.

Type: integer or max
Wartość musi znajdować się pomiędzy 1 a 500.
Domyślnie: 10
cocontinue

Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania listy. Więcej informacji na temat pobierania kolejnych porcji wyników znajdziesz na mediawiki.org.

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:Special:MyLanguage/Extension:GeoData#Usage for details.
name
Nazwa obiektu.
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:Special:MyLanguage/Extension:GeoData#Glossary for details.
Wartości (oddziel za pomocą | lub alternatywy): country, dim, globe, name, region, type
Domyślnie: 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.
Jedna z następujących wartości: all, primary, secondary
Domyślnie: primary
codistancefrompoint

Return distance in meters from the geographical coordinates of every valid result from the given coordinates.

Format: szerokość i długość geograficzna oddzielone pionową kreską (|).

codistancefrompage

Return distance in meters from the geographical coordinates of every valid result from the coordinates of this page.