MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=geosearch (gs)

(main | query | geosearch)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo può essere utilizzato come generatore.
  • Fonte: GeoData
  • Licenza: WTFPL

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

Parametri specifici:
Sono disponibili altri parametri generali.
gscoord

Coordinate around which to search.

Formato: latitudine e longitudine separati da una barra verticale (|).

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
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.
Uno dei seguenti valori: distance, relevance
Default: distance
gslimit

Numero massimo di pagine da restituire.

Tipo: intero o 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.

Uno dei seguenti valori: earth
Default: earth
gsnamespace

Namespaces to search.

Valori (separati da | o alternativa): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 710, 711, 828, 829, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2300, 2301, 2302, 2303, 3000, 3001
Per specificare tutti i valori, utilizza *.
Default: 0
gsprop

Quali proprietà addizionali delle coordinate restituire. (Proprietà sempre restituite: lat, lon, e primary o secondary come flag booleano.)

type
Type of the object the coordinates point to. See mw:Special:MyLanguage/Extension:GeoData#Usage for details.
name
Nome dell'oggetto.
dim
Dimensioni approssimative dell'oggetto in metri.
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.
Valori (separati da | o alternativa): country, dim, globe, name, region, type
Default: globe
gsprimary

Che tipo di coordinate restituire.

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.
Uno dei seguenti valori: all, primary, secondary
Default: primary