Interface IGeoCodeProvider

  • All Known Implementing Classes:
    GeoCodesLocal

    public interface IGeoCodeProvider
    • Method Detail

      • getId

        String getId()
        Gives the id. The id is used to find which geoCode providers have to be used in the task. The id must be unique among the geoCode providers.
        Returns:
        the id
      • getCityByDateAndCode

        Optional<City> getCityByDateAndCode​(Date dateCity,
                                            String strCode)
        get city by code and date
        Parameters:
        strCode -
        dateCity -
        Returns:
        the city (as Optional)
      • getCitiesListByNameAndDate

        List<City> getCitiesListByNameAndDate​(String strSearchBeginningVal,
                                              Date dateCity)
        search cities by name beginning with a string and a date
        Parameters:
        strSearchBeginningVal -
        dateCity -
        Returns:
        the list
      • getCountryByCodeAndDate

        Optional<Country> getCountryByCodeAndDate​(Date dateCountry,
                                                  String strCodeCountry)
        get country by code and date
        Parameters:
        strCodeCountry -
        dateCountry -
        Returns:
        the country (as Optional)
      • getCitiesListByNameAndDateLike

        List<City> getCitiesListByNameAndDateLike​(String strSearchBeginningVal,
                                                  Date dateCity)
        search cities by name beginning with a string and a date
        Parameters:
        strSearchBeginningVal -
        dateCity -
        Returns:
        the list
      • getCitiesListByNameLike

        List<City> getCitiesListByNameLike​(String strSearchBeginningVal)
        search cities by name beginning with a string
        Parameters:
        strSearchBeginningVal -
        Returns:
        the list
      • getCitiesListByName

        List<City> getCitiesListByName​(String strSearchBeginningVal)
        search cities by exact name
        Parameters:
        strSearchBeginningVal -
        Returns:
        the list
      • getCityByCode

        Optional<City> getCityByCode​(String strCode)
        get city by code
        Parameters:
        strCode -
        Returns:
        the city (as Optional)