I have a list of Wikimedia URL’s that I would like to obtain location information for.
I am trying to use the Wikimedia Commons web API to get that information, and I’m encountering some failures I can not make sense of.
Ideally I would like to obtain information such as country, region, city, etc. however if GPS coordinates are all that I can get that would serve as a starting point
From what I’m reading in the documentation, when someone requests coordinates, they can also try to request region and country, however, for the queries I’m submitting I”m only getting back just the coordinates. For example, if I submit this query:
https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=coord…
All that is returned for coordinates is:
"coordinates": [
{
"lat": 48.858296,
"lon": 2.294479,
"primary": ""
}
]
Also, if I submit a similar query for a category like Nilkheimer Park I do not get any coordinate information even though the web page for that category can at least say the park is located in Germany.
I’m wondering if there is a different kind of query someone can use other than coordinates that might provide that kind of information.