Class GeoNamesWebService

java.lang.Object
org.codice.ddf.spatial.geocoder.geonames.GeoNamesWebService
All Implemented Interfaces:
org.codice.ddf.spatial.geocoding.GeoEntryQueryable

public class GeoNamesWebService extends Object implements org.codice.ddf.spatial.geocoding.GeoEntryQueryable
  • Constructor Details

    • GeoNamesWebService

      public GeoNamesWebService()
  • 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 locationWkt, 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 locationWkt, int radius)
      Specified by:
      getCountryCode in interface org.codice.ddf.spatial.geocoding.GeoEntryQueryable