Class GazetteerQueryCatalog
java.lang.Object
org.codice.ddf.spatial.geocoding.query.GazetteerQueryCatalog
- All Implemented Interfaces:
org.codice.ddf.spatial.geocoding.GeoEntryQueryable
public class GazetteerQueryCatalog
extends Object
implements org.codice.ddf.spatial.geocoding.GeoEntryQueryable
-
Constructor Summary
ConstructorsConstructorDescriptionGazetteerQueryCatalog(ddf.catalog.CatalogFramework catalogFramework, ddf.catalog.filter.FilterBuilder filterBuilder) -
Method Summary
Modifier and TypeMethodDescriptiongetCountryCode(String wktLocation, int radius) List<org.codice.ddf.spatial.geocoding.context.NearbyLocation> getNearestCities(String location, int radiusInKm, int maxResults) List<org.codice.ddf.spatial.geocoding.Suggestion> getSuggestedNames(String queryString, int maxResults) List<org.codice.ddf.spatial.geocoding.GeoEntry> org.codice.ddf.spatial.geocoding.GeoEntry
-
Constructor Details
-
GazetteerQueryCatalog
public GazetteerQueryCatalog(ddf.catalog.CatalogFramework catalogFramework, ddf.catalog.filter.FilterBuilder filterBuilder)
-
-
Method Details
-
query
public List<org.codice.ddf.spatial.geocoding.GeoEntry> query(String queryString, int maxResults) throws org.codice.ddf.spatial.geocoding.GeoEntryQueryException - Specified by:
queryin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryQueryable- Throws:
org.codice.ddf.spatial.geocoding.GeoEntryQueryException
-
queryById
public org.codice.ddf.spatial.geocoding.GeoEntry queryById(String id) throws org.codice.ddf.spatial.geocoding.GeoEntryQueryException - Specified by:
queryByIdin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryQueryable- Throws:
org.codice.ddf.spatial.geocoding.GeoEntryQueryException
-
getSuggestedNames
public List<org.codice.ddf.spatial.geocoding.Suggestion> getSuggestedNames(String queryString, int maxResults) throws org.codice.ddf.spatial.geocoding.GeoEntryQueryException - Specified by:
getSuggestedNamesin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryQueryable- Throws:
org.codice.ddf.spatial.geocoding.GeoEntryQueryException
-
getNearestCities
public List<org.codice.ddf.spatial.geocoding.context.NearbyLocation> getNearestCities(String location, int radiusInKm, int maxResults) throws ParseException, org.codice.ddf.spatial.geocoding.GeoEntryQueryException - Specified by:
getNearestCitiesin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryQueryable- Throws:
ParseExceptionorg.codice.ddf.spatial.geocoding.GeoEntryQueryException
-
getCountryCode
public Optional<String> getCountryCode(String wktLocation, int radius) throws org.codice.ddf.spatial.geocoding.GeoEntryQueryException, ParseException - Specified by:
getCountryCodein interfaceorg.codice.ddf.spatial.geocoding.GeoEntryQueryable- Throws:
org.codice.ddf.spatial.geocoding.GeoEntryQueryExceptionParseException
-