Hi,
I am trying to retrieve geo location information of search suggest results. Can you please suggest ?
I am using http://en.wikipedia.org/w/api.php?action=opensearch&search=London&fo...
however I need to get back extent or lat/long info of the search results.
Regards, Pratik
________________________________ The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/
2010/3/18 pratik sanyal pratiksynl@yahoo.co.in:
Hi,
I am trying to retrieve geo location information of search suggest results. Can you please suggest ?
I am using http://en.wikipedia.org/w/api.php?action=opensearch&search=London&fo...
however I need to get back extent or lat/long info of the search results.
This information is not stored in the database. The best you can do is grab the wikitext of each of these pages and look for the geolocation template in there. I think there may also be tools or libraries that already do this, but I don't know of any specific ones.
Roan Kattouw (Catrope)
pratik sanyal schrieb am 18.03.2010 21:17:
I am trying to retrieve geo location information of search suggest results. Can you please suggest ?
I am using http://en.wikipedia.org/w/api.php?action=opensearch&search=London&fo...
You can search for the Geohack external links, like:
http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrs...
So you'll get for instance:
http://toolserver.org/~geohack/geohack.php?pagename=City_of_London¶m...
Or: download the (not very up-to-date) database dump with an extract of all locations and do the geocoding by yourself.
http://toolserver.org/~kolossos/wp-world/utf8/geo_id_utf.txt.gz
Regards Alex
mediawiki-api@lists.wikimedia.org