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 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:
      query in interface org.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:
      queryById in interface org.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:
      getSuggestedNames in interface org.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:
      getNearestCities in interface org.codice.ddf.spatial.geocoding.GeoEntryQueryable
      Throws:
      ParseException
      org.codice.ddf.spatial.geocoding.GeoEntryQueryException
    • getCountryCode

      public Optional<String> getCountryCode(String wktLocation, int radius) throws org.codice.ddf.spatial.geocoding.GeoEntryQueryException, ParseException
      Specified by:
      getCountryCode in interface org.codice.ddf.spatial.geocoding.GeoEntryQueryable
      Throws:
      org.codice.ddf.spatial.geocoding.GeoEntryQueryException
      ParseException