Re:Geologic Map of Mars
by capnrefsmmat on Thursday July 17, 2014 @06:04PM
(#8050486)
The structured data (such as geodata) in Wikipedia is being migrated to Wikidata, which does offer APIs:
https://www.wikidata.org/wiki/Wikidata:Main_Page
If you dig, I think you can find RDF dumps of the database.
I can't think of a way to query wikipedia - not like this allows. Once this file has been imported into sql (I use SQL Server), I run queries like SELECT DISTINCT [feature_type] FROM dbo.nationalFile WHERE [state] = 'California'
This will give me a list of all types of features in California. From there, I'll see something that looks interesting (like "lava field" or "mine") and I'll run another query like SELECT [feature_name], [latitude], [longitude] FROM dbo.nationalFile WHERE [state] = 'California' AND feature_type='lava field'.
This will give me a very clear list list. I can't imagine there would be a way to do this with Wikipedia, or any other online source that doesn't offer an API.