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
prop=coordinates (co)
- Questo modulo richiede i diritti di lettura.
- Fonte: GeoData
- Licenza: WTFPL
Returns coordinates of the given pages.
- colimit
Quante coordinate restituire.
- Tipo: intero o max
- The value must be between 1 and 500.
- Default: 10
- cocontinue
Quando più risultati sono disponibili, usa questo per continuare. Informazioni più dettagliate su come continuare le query possono essere trovate su mediawiki.org.
- coprop
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
- coprimary
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
- codistancefrompoint
Ritorna la distanza in metri dalle coordinate geografiche di ogni risultato valido dalle coordinate indicate.
Formato: latitudine e longitudine separati da una barra verticale (|).
- codistancefrompage
Ritorna la distanza in metri dalle coordinate geografiche di ogni risultato valido dalle coordinate di questa pagina.
- Get a list of coordinates of the Main Page
- api.php?action=query&prop=coordinates&titles=Main%20Page [apri in una sandbox]