Interface LandOrSeaService

  • All Known Implementing Classes:
    LandOrSeaServiceImpl

    public interface LandOrSeaService
    The Interface LandOrSeaService.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String classifyLocation​(float longitude, float latitude, int allowedDistanceMargin)
      Classifies location as one of Land, Coastal or Water
      Boolean isOnLand​(float longitude, float latitude, int allowedDistanceFromLand)
      Checks if is on land.
    • Method Detail

      • isOnLand

        Boolean isOnLand​(float longitude,
                         float latitude,
                         int allowedDistanceFromLand)
                  throws Exception
        Checks if is on land.
        Parameters:
        longitude - the longitude
        latitude - the latitude
        allowedDistanceFromLand - the allowed distance from land
        Returns:
        the boolean
        Throws:
        Exception - the exception
      • classifyLocation

        String classifyLocation​(float longitude,
                                float latitude,
                                int allowedDistanceMargin)
                         throws Exception
        Classifies location as one of Land, Coastal or Water
        Parameters:
        longitude - the longitude
        latitude - the latitude
        allowedDistanceMargin - the allowed distance from land
        Returns:
        Land, Coastal or Water
        Throws:
        Exception - the exception