Hi,
On Wed, Jul 22, 2015 at 7:13 PM, Sylvain Arnouts <sylvain.arnouts@wanadoo.fr
wrote:
You're right, I didn't think about it. So to have all result, I have to call all API on each Wikivoyage version ?
Well, either that, or you might want to utilize Wikidata, which should basically contain everything. For instance, using < https://wdq.wmflabs.org/api?q=around%5B625,46.016667,-1.175,10%5D%3E you’ll get the list of all Wikidata items in 10km radius around Île d'Aix. You might want to limit the query to Wikidata items with a link to a Wikivoyage article in English, German or French with < https://wdq.wmflabs.org/api?q=around%5B625,46.016667,-1.175,10%5D%20AND%20li... (add more languages to the list if so desired). I don’t know if mapping those entity IDs to links could be done in a single step (@Magnus?), or you need to take the result and in another step call something < https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q214568%7CQ2...
.
HTH, -- [[cs:User:Mormegil | Petr Kadlec]]