GeoNames Home | Postal Codes | Download / Webservice | About | |
Attribute | Description |
---|---|
lang | ISO language code of article text |
title | the article title |
summary | a short summary of the article text. Around 300 chars. The text is truncated at a full stop if one is available near char 300, otherwise at the end of a word. |
feature | the wikipedia feature type. A list of types is available here |
countryCode | the ISO country code of the article |
elevation | the elevation in metres (optional may be null), parsed from the article or reverse geocoded. |
population | the population (optional may be null) |
lat | latitude |
lng | longitude |
wikipediaUrl | URL of the article |
thumbnailImg | URL of a small thumbnail image (ca 100x75 px) |
rank | indication of the popularity or relevancy of an article. The rank is an integer number from 1 for the least popular articles to 100 for the most popular articles. It is calculated from the number of links pointing to an article and the article length. The articles are more or less evenly distributed over the 100 ranks. |
Webservice Type : XML,JSON or RSS
Url : api.geonames.org/findNearbyWikipedia?
api.geonames.org/findNearbyWikipediaJSON?
api.geonames.org/findNearbyWikipediaRSS?
Parameters :
lang : language code (around 240 languages) (default = en)
lat,lng, radius (in km), maxRows (default = 5),country (default = all countries)
or
postalcode,country, radius (in Km, default 10km, max limit for free service 20km, max limit for premium 150km), maxRows (default = 5, max for free service 500, max for premium service 2000)
for premium users: length of the full text.
Result : returns a list of wikipedia entries as xml document
Example:
http://api.geonames.org/findNearbyWikipedia?lat=47&lng=9&username=demo
or
api.geonames.org/findNearbyWikipedia?postalcode=8775&country=CH&radius=10&username=demo
This work is licensed under a
Creative Commons Attribution 3.0 License.
Wikipedia texts are licenced under Creative Commons Attribution-ShareAlike 3.0 Unported License.