GeoNames Home | Postal Codes | Download / Webservice | About |
search

Wikipedia Geocoding Webservice

Find nearby Wikipedia Entries / reverse geocoding
This service comes in two flavors. You can either pass the lat/long or a postalcode/placename.

Webservice Type : XML,JSON or RSS
Url : ws.geonames.org/findNearbyWikipedia?
ws.geonames.org/findNearbyWikipediaJSON?
ws.geonames.org/findNearbyWikipediaRSS?
Parameters :
lang : language code (around 180 languages) (default = en)
lat,lng, radius (in km), maxRows (default = 5),country (default = all countries)
or
postalcode,country, radius (in Km), maxRows (default = 5)
Result : returns a list of wikipedia entries as xml document
Example:
http://ws.geonames.org/findNearbyWikipedia?lat=47&lng=9
or
ws.geonames.org/findNearbyWikipedia?postalcode=8775&country=CH&radius=10

[more reverse geocoding]



Wikipedia Fulltext Search
Webservice Type : XML or JSON
Url : ws.geonames.org/wikipediaSearch?
ws.geonames.org/wikipediaSearchJSON?
Parameters : q : place name (urlencoded utf8)
title : search in the wikipedia title (optional)
lang : language either 'de' or 'en' (default = en)
maxRows : maximal number of rows returned (default = 10)
Result : returns the wikipedia entries found for the searchterm as xml document
Example http://ws.geonames.org/wikipediaSearch?q=london&maxRows=10



Wikipedia Articles in Bounding Box
Webservice Type : XML or JSON
Url : ws.geonames.org/wikipediaBoundingBox?
ws.geonames.org/wikipediaBoundingBoxJSON?
Parameters : south,north,east, west : coordinates of bounding box
lang : language either 'de' or 'en' (default = en)
maxRows : maximal number of rows returned (default = 10)
Result : returns the wikipedia entries within the bounding box as xml document
Example http://ws.geonames.org/wikipediaBoundingBox?north=44.1&south=-9.9&east=-22.4&west=55.2



Note : Don't forget to url encode string parameters containing special characters or spaces. (Faq entry on url encoding)





Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.