Class CountryOfOriginServiceImpl

    • Constructor Detail

      • CountryOfOriginServiceImpl

        public CountryOfOriginServiceImpl()
    • Method Detail

      • setDataFolderPath

        public void setDataFolderPath​(String dataFolderPath)
      • getCountries

        public String getCountries​(float longitude,
                                   float latitude,
                                   String origCty,
                                   int allowedDistanceMargin)
                            throws Exception
        Description copied from interface: CountryOfOriginService
        Gets the countries.
        Specified by:
        getCountries in interface CountryOfOriginService
        Parameters:
        longitude - the longitude
        latitude - the latitude
        origCty - the orig cty
        allowedDistanceMargin - the allowed distance margin
        Returns:
        the countries
        Throws:
        Exception - the exception
      • distanceToBorder

        public double distanceToBorder​(float longitude,
                                       float latitude,
                                       String origCty)
                                throws Exception
        Description copied from interface: CountryOfOriginService
        Get distance from georeference to closest point on border of specified country
        Specified by:
        distanceToBorder in interface CountryOfOriginService
        Parameters:
        longitude - the longitude
        latitude - the latitude
        origCty - the country ISO code
        Returns:
        distance to closest point on country border or -1 if not found
        Throws:
        Exception - the exception
      • printCache

        public void printCache()
        Prints the cache.