Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.

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

list=geosearch (gs)

(main | query | geosearch)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł może być użyty jako generator.
  • Źródło: GeoData
  • Licencja: WTFPL

Returns pages having coordinates that are located in a certain area.

Parametry:
gscoord

Coordinate around which to search.

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

gspage

Title of page around which to search.

gsbbox

Bounding box to search in: pipe (|) separated coordinates of top left and bottom right corners.

gsradius

Search radius in meters.

Type: integer
The value must be between 10 and 10 000.
Default: 500
gsmaxdim

Restrict search to objects no larger than this, in meters.

Type: integer
gslimit

Maximum number of pages to return.

Type: integer or max
The value must be between 1 and 500.
Default: 10
gsglobe

Globe to search on. See mw:Special:MyLanguage/Extension:GeoData#Glossary for details.

Jedna z następujących wartości: earth
Default: earth
gsnamespace

Namespaces to search.

Wartości (oddziel za pomocą | lub alternatywy): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 460, 461, 828, 829, 2300, 2301, 2302, 2303
Aby wskazać wszystkie wartości, użyj *.
Default: 0
gsprop

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
Default: globe
gsprimary

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
Default: primary