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&format=xml
> 

You can search for the Geohack external links, like:

http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=London&prop=extlinks

So you'll get for instance:

http://toolserver.org/~geohack/geohack.php?pagename=City_of_London&params=51.5155_N_0.0922_W_type:landmark_scale:7500


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

-- http://de.wikipedia.org/wiki/Benutzer:Alexrk2


_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to