Hi,
I am a GSoC student making a script using pywikibot to find categories for
Images on commons[0]. One thing I was trying was to use the GPS
coordinateds given by the camera (in EXIF data) to find the location and
add the place's category to it. For example, if I take an image of the
Eiffel Tower it should auto add Category:Paris to it.
For this, I was trying to use the Nominatim service from OSM.
http://nominatim.openstreetmap.org is not meant for bulk finding the
geolocations and limits the query rate at 1 query / minute.
I was wondering whether the OSM api was also available on maps.wikimedia.org ?
And whether the Nominatim API is hosted and working ? I wasn't able to find
any documentation about it.
Also, is there any documentation on query limits and so on ?
Regards,
Abdeali JK
References:
[0] - https://phabricator.wikimedia.org/T129611
This week we enabled geo-shapes service (non-production only). Given
Wikidata ID(s), maps service can give you associated geoshapes (as
topojson). Moreover, you can actually give it a Wikidata SPARQL query, and
as long as each ID is unique, it will get geoshapes for each one, and keep
other values as TopoJSON properties.
What this means is that once its in production, you can do this:
http://data.wmflabs.org/wiki/Regional_maps
It's a bunch of maps (using graph extension), that are dynamically
generated by a template! You just give it a country and a few more
optional parameters, and it draws the regions, and can show images from
Commons if you hover over the state capitals (black dots).
Next step - adding some interesting data on top of those maps, like
election results or rates of air pollution. That data will hopefully be
stored in a central repository, together with non-OSM geoshapes (like
historical country outlines, bird migration paths, etc).