Manual:Pywikibot/coordinate import.py

coordinate_import.py is a script used to mass import coordinates from Wikipedia to.

Usage
This will work on all pages in the category "coordinates not on Wikidata" and will import the coordinates on these pages to Wikidata.

The data from the is used so that extension has to be setup properly. On Wikimedia wikis GeoData extension is installed. You can look at the Special:Nearby page on your local Wiki to see if it's populated.

The extension adds coordinates to the API. Coordinate import bot uses that information to add a claim to Wikidata. By default p625>:d:Property:P625|P625 (coordinate location) is used.

In the future the bot might support other properties as long as the property is of type wd-datatype>:d:Category:Properties with globe-coordinate-datatype|globe-coordinate.

Syntax
You can use any typical to provide with a list of pages:

You can also run over a set of items on the repo without coordinates and try to import them from any connected page. To do this, you have to explicitly provide the site using -lang and -family arguments. Example:

The following command line parameters are supported: