Last modified: 2014-04-25 14:03:44 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)
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.