de.monarchy.guideme.pois.wikipedia
Class WikipediaProvider
java.lang.Object
de.monarchy.guideme.pois.wikipedia.WikipediaProvider
- All Implemented Interfaces:
- POIProvider
public class WikipediaProvider
- extends java.lang.Object
- implements POIProvider
WikipediaProvider is a POIProvider implementation for wikipedia articles. It
uses a webservice by geonames.com for its purposes. As the webservice states,
wikipedia articles in over 240 languages can be obtained. for that, the user
has to choose one particular language at instantiation time.
- Author:
- dstuerze
Method Summary |
POI[] |
receivePOIs(GeoCoordinate where,
int radius,
java.lang.String what)
This method is called by anyone who wants to receive points of interest
in a certain radius around a specified location. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikipediaProvider
public WikipediaProvider()
receivePOIs
public POI[] receivePOIs(GeoCoordinate where,
int radius,
java.lang.String what)
- Description copied from interface:
POIProvider
- This method is called by anyone who wants to receive points of interest
in a certain radius around a specified location.
- Specified by:
receivePOIs
in interface POIProvider
- Parameters:
where
- central point of searchradius
- distance in metres around this spotwhat
- specification of what to search (optional)
- Returns:
- array of POIs