There is a more direct way to get this from Wikidata, if you want an API. That's the API used by AutoList. Returns JSON or JSONP.
Example query to retrieve all Commons categories within 0.1 kilometer from 40.7576,-73.9857:
Explanation of the request:
Wikidata can do it!
Using autolist, run the query claim and around[625,40.7576,-73.9857,50] [link].
This will give you all items with a commons category property (P373) and a location (P625) up to 50km from 40.7576,-73.9857.
At the time of writing, this is 1900 entries. Dropping it to 10km is 1146, and 1km is 141.
(This won't get subcategories of ...
As you can see in Wikimedia Commons, packages usually involve some copyrighted content and therefore its image can't be published under a free license. It can only be published with permission of copyright owners or under a suitable exception (like de minimis or fair use) although I'm afraid no such exception is suitable for a large collection of commercial ...
First variant: MediaWiki API for Commons with search query for pages of type "Category" (srnamespace=14), maximum 10 results (srlimit=10), and searched string your_string:
Second variant: ...
Wikimedia Commons has developed a special API exactly for this.
Documentation and web UI: https://commons.wikimedia.org/wiki/Commons:User_scripts/File_Analyzer
Let's say you want to check whether your file myimage.jpg is already on Wikimedia Commons or not.
Calculate the checksum of myimage.jpg, for instance your get ...
The closest thing that I know is the Wikidata Query, with around and filtered for images. But it is not a perfect fit for your usecase since you need to limit by radius rather than by number of images.
The claim is what specifies that you only want ...
There does not seem to be a Wikipedia API. It looks like geonames.org has some of this functionality though.
For example, take a look at the results of this page: http://www.geonames.org/maps/google_40.7576_-73.9857.html
I took a look at the API requests on that page and it called the following: