Hi,

On Wed, Jul 22, 2015 at 7:13 PM, Sylvain Arnouts <sylvain.arno...@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[625,46.016667,-1.175,10]> 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[625,46.016667,-1.175,10]%20AND%20link[enwikivoyage,dewikivoyage,frwikivoyage]>
(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|Q292111&props=sitelinks/urls&sitefilter=enwikivoyage|dewikivoyage|frwikivoyage
>.

HTH,
-- [[cs:User:Mormegil | Petr Kadlec]]
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to