Interface CountryOfOriginService

  • All Known Implementing Classes:
    CountryOfOriginServiceImpl

    public interface CountryOfOriginService
    The Interface CountryOfOriginService.
    • Method Detail

      • getCountries

        String getCountries​(float longitude,
                            float latitude,
                            String origCty,
                            int allowedDistanceMargin)
                     throws Exception
        Gets the countries.
        Parameters:
        longitude - the longitude
        latitude - the latitude
        origCty - the orig cty
        allowedDistanceMargin - the allowed distance margin
        Returns:
        the countries
        Throws:
        Exception - the exception
      • distanceToBorder

        double distanceToBorder​(float longitude,
                                float latitude,
                                String origCty)
                         throws Exception
        Get distance from georeference to closest point on border of specified country
        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