de.monarchy.guideme.pois.wikipedia
Class WikipediaProvider

java.lang.Object
  extended by 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

Constructor Summary
WikipediaProvider()
           
 
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
 

Constructor Detail

WikipediaProvider

public WikipediaProvider()
Method Detail

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 search
radius - distance in metres around this spot
what - specification of what to search (optional)
Returns:
array of POIs