Page MenuHomePhabricator

Add coordinates to harvest_template
Open, LowestPublic

Description

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)


Version: core-(2.0)
Severity: normal

Details

Reference
bz62009

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 3:01 AM
bzimport set Reference to bz62009.
bzimport added a subscriber: Unknown Object (????).

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.

Yes, I doubt this is still needed at this point. Setting the priority to lowest.