--- dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AdressSearch.java 2015/02/23 14:39:49 2346 +++ dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AdressSearch.java 2015/02/23 15:11:39 2350 @@ -31,10 +31,16 @@ private Map helperCache; - private DataStatisticsBean stats = new DataStatisticsBean(); + private DataStatisticsBean stats = new DataStatisticsBean(); + ServiceConfig config; - public SearchResult search(ServiceConfig config, String postnrStr, String adresse) { + public AdressSearch(ServiceConfig config) { + this.config = config; + } + + + public SearchResult search(String postnrStr, String adresse) { int postnr=0; boolean google = false; @@ -72,7 +78,7 @@ if ( gadeident == null) { if (config.useGoogle) { - String googleVej = GeocodeHelper.googleHelper(postnr, split.vej ); + String googleVej = GeocodeHelper.googleHelper(config, postnr, split.vej ); google = true; if (googleVej != null) {