Manual:Pywikibot/coordinate import.py/en

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 wiki's 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 (coordinate location) is used.

In the future the bot might support other properties as long as the property is of type 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 need to explicitly provide the repo as the site using -lang a -family arguments. Example:

The following command line parameters are supported: