Package org.genesys.geotools.service
Interface CountryOfOriginService
-
- All Known Implementing Classes:
CountryOfOriginServiceImpl
public interface CountryOfOriginServiceThe Interface CountryOfOriginService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubledistanceToBorder(float longitude, float latitude, String origCty)Get distance from georeference to closest point on border of specified countryStringgetCountries(float longitude, float latitude, String origCty, int allowedDistanceMargin)Gets the countries.
-
-
-
Method Detail
-
getCountries
String getCountries(float longitude, float latitude, String origCty, int allowedDistanceMargin) throws Exception
Gets the countries.- Parameters:
longitude- the longitudelatitude- the latitudeorigCty- the orig ctyallowedDistanceMargin- the allowed distance margin- Returns:
- the countries
- Throws:
Exception- the exception
-
distanceToBorder
double distanceToBorder(float longitude, float latitude, String origCty) throws ExceptionGet distance from georeference to closest point on border of specified country- Parameters:
longitude- the longitudelatitude- the latitudeorigCty- the country ISO code- Returns:
- distance to closest point on country border or -1 if not found
- Throws:
Exception- the exception
-
-