Package org.codice.ddf.spatial.geocoding
Interface FeatureQueryable
public interface FeatureQueryable
A
FeatureQueryable provides methods for querying a resource containing geographic
features.-
Method Summary
-
Method Details
-
query
List<org.geotools.api.feature.simple.SimpleFeature> query(String queryString, String featureCode, int maxResults) throws FeatureQueryException Retrieves the top results for the given query up tomaxResultsresults.- Parameters:
queryString- aStringcontaining search termsfeatureCode- geonames feature code identifying the type of feature to search for. this can be null and the implementation can choose to ignore it.maxResults- the maximum number of results to return- Returns:
- the top results for the query in descending order of relevance, or an empty
Listif no results are found - Throws:
IllegalArgumentException- ifqueryStringis null or empty, or ifmaxResultsis not a positive integerFeatureQueryException- if an exception occurs while querying
-