Hi guys !
Thanks to all your answer and advices you posted on this thread, the new version of my website is now online ! http://wikijourney.eu/ It's now working with datas from Wikipedia, Wikidata, WikiVoyage, and OpenStreetMaps. Feel free to contribute on the Github ;)
Thanks a lot !
Le 22/07/2015 22:47, Petr Kadlec a écrit :
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]] _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l