Last modified: 2014-04-25 14:03:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64009, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62009 - Add coordinates to harvest_template
Add coordinates to harvest_template
Status: NEW
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Lowest normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-27 18:25 UTC by Maarten Dammers
Modified: 2014-04-25 14:03 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten Dammers 2014-02-27 18:25:41 UTC
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)
Comment 1 Ricordisamoa 2014-04-25 12:44:13 UTC
We have now a specific script to import coordinates that uses the GeoData extension:
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/HEAD/scripts%2Fcoordinate_import.py

Trying to scrape coordinates from a template is quite risky.
Comment 2 Maarten Dammers 2014-04-25 14:03:44 UTC
Yes, I doubt this is still needed at this point. Setting the priority to lowest.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links