31 |
|
|
32 |
private Map<String,Long> helperCache; |
private Map<String,Long> helperCache; |
33 |
|
|
34 |
private DataStatisticsBean stats = new DataStatisticsBean(); |
private DataStatisticsBean stats = new DataStatisticsBean(); |
35 |
|
|
36 |
|
ServiceConfig config; |
37 |
|
|
38 |
public SearchResult search(ServiceConfig config, String postnrStr, String adresse) { |
public AdressSearch(ServiceConfig config) { |
39 |
|
this.config = config; |
40 |
|
} |
41 |
|
|
42 |
|
|
43 |
|
public SearchResult search(String postnrStr, String adresse) { |
44 |
|
|
45 |
int postnr=0; |
int postnr=0; |
46 |
boolean google = false; |
boolean google = false; |
78 |
|
|
79 |
if ( gadeident == null) { |
if ( gadeident == null) { |
80 |
if (config.useGoogle) { |
if (config.useGoogle) { |
81 |
String googleVej = GeocodeHelper.googleHelper(postnr, split.vej ); |
String googleVej = GeocodeHelper.googleHelper(config, postnr, split.vej ); |
82 |
google = true; |
google = true; |
83 |
|
|
84 |
if (googleVej != null) { |
if (googleVej != null) { |