thank you Ed,
for curid I mean pageid of the article.
I basically nead the title, the pageid, the thumbnail (and if possible also
the meters of distance from your position )
is it already in your package?
On Tue, Jun 25, 2013 at 10:23 PM, Ed Summers <ehs(a)pobox.com> wrote:
You should find an example below the doc if you scan
the page for
list=geosearch, I think it has this:
http://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsrad…
It is possible to use the geosearch query as a generator for getting
page information, like revision ids (is that what you meant by
curid?). In wikigeo I wanted to get back image information, summary
text, categories etc, so my api call was somewhat involved. I could
try to write up something about it if you are interested.
//Ed
On Tue, Jun 25, 2013 at 4:16 PM, Luigi Assom <luigi.assom(a)gmail.com>
wrote:
Thank you Ed,
indeed, I am looking for smthing like this!
I see your examples, is it possible to extend the json in order to get
also
the curid of articles, not only the url and
titles of wiki pages?
Could you also add an example of how to use the list=geosearch api ?
(this is wrong .. :)
http://en.wikipedia.org/w/api.php?action=query&list=geosearch )
thank you!
On Tue, Jun 25, 2013 at 10:07 PM, Ed Summers <ehs(a)pobox.com> wrote:
>
> You might be interested in the list=geosearch API call. I used it in
> my demo service ici, which displays articles about your current
> location:
>
>
http://inkdroid.org/ici/
>
> I actually ended up pulling out the api querying bits into a separate
> Javascript library called wikigeo that takes some coordinates, and
> will query the Wikipedia API, and format the results as GeoJSON for
> easy placement on Leaflet or Google Maps.
>
>
http://edsu.github.io/wikigeo/
>
> //Ed
>
> On Tue, Jun 25, 2013 at 3:40 PM, Luigi Assom <luigi.assom(a)gmail.com>
> wrote:
> > Hi,
> >
> > wiki exposes the nearby search of articles:
> >
http://en.m.wikipedia.org/wiki/Special:Nearby
> >
> > I now you can use prop=coordinates to expose the coordinates of one
> > article.
> >
> >
> >
http://en.wikipedia.org/w/api.php?action=query&prop=coordinates&tit…
Is there any api to expose the nearby service for fetching articles
close to
one's coordinate?
How to do the nearby above?
--
Luigi Assom
Skype contact: oggigigi
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
--
Luigi Assom
Skype contact: oggigigi
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api