MediaWiki API súgó

Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=geosearch (gs)

(main | query | geosearch)
  • Ez a modul olvasási jogot igényel.
  • Ez a modul használható generátorként.
  • Forrás: GeoData
  • Licenc: WTFPL

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

Jellemző paraméterek:
Other general parameters are available.
gscoord

Coordinate around which to search.

Format: Latitude and longitude separated by pipe (|).

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.

Típus: egész szám
Az értéknek 10 és 10 000 között kell lennie.
Alapértelmezett: 500
gsmaxdim

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

Típus: egész szám
gssort

Set the sort order of returned results.

distance
Rank pages by their distance to the center.
relevance
Rank pages by their relevance according to CirrusSearch, similar to how Special:Search does it. Currently only supported on wikis that use the ElasticSearch backend, see mw:Extension:GeoData#Search backends.
A következő értékek egyike: distance, relevance
Alapértelmezett: distance
gslimit

Maximum number of pages to return.

Típus: egész vagy max
Az értéknek 1 és 500 között kell lennie.
Alapértelmezett: 10
gsglobe

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

A következő értékek egyike: earth
Alapértelmezett: earth
gsnamespace

Namespaces to search.

Értékek (elválasztó: | vagy más): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 90, 91, 92, 93, 100, 101, 118, 119, 710, 711, 828, 829
Az összes érték megadásához használd a(z) * értéket.
Alapértelmezett: 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
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:Special:MyLanguage/Extension:GeoData#Glossary for details.
Értékek (elválasztó: | vagy más): country, dim, globe, name, region, type
Alapértelmezett: 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.
A következő értékek egyike: all, primary, secondary
Alapértelmezett: primary
gsdebug

Whether debug information should be returned.

Típus: logikai (részletek)