Hi Bastien,
(answering the first email, should answer all your questions)
Op 19-8-2013 18:46, Bastien schreef:
Hi Maarten,
Maarten Dammers maarten@mdammers.nl writes:
We still lack a very important tool for Wiki Loves Monuments in September: A web based map to easily find monuments.
I hacked this together:
I like the interface a lot. The items should have a bit more information like at least the identifier, that's the main use case.
It's only ~5000 random entries from your database (don't miss the ones in Antartica!)
Nice :-)
Does erfgoed's API reads a "country" and a "with-picture" parameter? If so, is it okay to load data directly by querying the API?
The database has the following fields (https://commons.wikimedia.org/wiki/Commons:Monuments_database#Monuments_all): * country * lang * id * adm0 * adm1 * adm2 * adm3 * adm4 * name * address * municipality * lat * lon * lat_int * lon_int * image * commonscat * source * changed * monument_article * registrant_url * monument_random
You can ask the api several things: * sr<fieldname>=search a fieldname * srwith<fieldname>=<boolean> to get only items where something is set * srwithout<fieldname>=<boolean> to get only items where something is not set
You can get it in different formats etc, see http://toolserver.org/~erfgoed/api/api.php for a bit more info
If so, I will add a form with a list of countries and two checkboxes for "Monuments with Pictures" and "Monuments without picture".
+1
I'll also center the map to the user's location.
That's nice!
Maarten