public class GazetteerFeatureService extends Object implements FeatureService
Constructor and Description |
---|
GazetteerFeatureService() |
Modifier and Type | Method and Description |
---|---|
Feature |
getFeatureByName(String name)
Retrieves a specific geographic feature by its exact name (as returned by
getSuggestedFeatureNames).
|
protected GeoResult |
getGeoResultFromGeoEntry(GeoEntry entry) |
List<String> |
getSuggestedFeatureNames(String query,
int maxResults)
Searches for geographic features by name, returning the names of the closest n matches.
|
void |
setGeoEntryQueryable(GeoEntryQueryable geoEntryQueryable) |
public void setGeoEntryQueryable(GeoEntryQueryable geoEntryQueryable)
public List<String> getSuggestedFeatureNames(String query, int maxResults)
FeatureService
getSuggestedFeatureNames
in interface FeatureService
query
- search termmaxResults
- maximum number of results to returnpublic Feature getFeatureByName(String name)
FeatureService
getFeatureByName
in interface FeatureService
name
- name of a geographic featureThis work is licensed under a Creative Commons Attribution 4.0 International License.