https://bugzilla.wikimedia.org/show_bug.cgi?id=62009
Bug ID: 62009 Summary: Add coordinates to harvest_template Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Web browser: --- Mobile Platform: ---
We still have a lot of items on Wikidata that don't have coordinates. Would be nice to be able to import them. I did this with some bots, but would of course be nicer to have a generic bot so more people can help out.
How to fetch the data is going to be fun. We have all sorts of fields that need to be combined: * It can be in decimal notation, than we have to combine the lat and lon fields * It can be in deg/min/sec/direction notation, than we have up to 8 fields to handle. * Probably other variants in the wild
Maybe add some field options so we can do <somefield> "P625|<keyword". Than we would have keywords like * lat - The latitude, either just a degree or with some decimals * lanmin - Minutes to be added to the latitude * latsec - Seconds to be added to the latitude * latdir - Direction for the latitude. Different languages might have different things here
For lon the same things (lon, lonmin, lonsec, londir)
https://bugzilla.wikimedia.org/show_bug.cgi?id=62009
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@live.it
--- Comment #1 from Ricordisamoa ricordisamoa@live.it --- We have now a specific script to import coordinates that uses the GeoData extension: https://git.wikimedia.org/blob/pywikibot%2Fcore.git/HEAD/scripts%2Fcoordinat...
Trying to scrape coordinates from a template is quite risky.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62009
Maarten Dammers maarten@mdammers.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Lowest
--- Comment #2 from Maarten Dammers maarten@mdammers.nl --- Yes, I doubt this is still needed at this point. Setting the priority to lowest.
pywikipedia-bugs@lists.wikimedia.org