Interface IGeoCodeProvider
-
- All Known Implementing Classes:
GeoCodesLocal
public interface IGeoCodeProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<City>getCitiesListByName(String strSearchBeginningVal)search cities by exact nameList<City>getCitiesListByNameAndDate(String strSearchBeginningVal, Date dateCity)search cities by name beginning with a string and a dateList<City>getCitiesListByNameAndDateLike(String strSearchBeginningVal, Date dateCity)search cities by name beginning with a string and a dateList<City>getCitiesListByNameLike(String strSearchBeginningVal)search cities by name beginning with a stringOptional<City>getCityByCode(String strCode)get city by codeOptional<City>getCityByDateAndCode(Date dateCity, String strCode)get city by code and dateOptional<Country>getCountryByCodeAndDate(Date dateCountry, String strCodeCountry)get country by code and dateStringgetId()Gives the id.
-
-
-
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
-
-