/[projects]/dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/AddressSearch.java
ViewVC logotype

Diff of /dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/AddressSearch.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2349 by torben, Mon Feb 23 15:02:48 2015 UTC revision 2358 by torben, Tue Feb 24 10:18:19 2015 UTC
# Line 31  public class AdressSearch { Line 31  public class AdressSearch {
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;
# Line 55  public class AdressSearch { Line 61  public class AdressSearch {
61                                    
62                                    
63                  SplitResult split = AddressUtils.splitAdresse(adresse);                  SplitResult split = AddressUtils.splitAdresse(adresse);
64                  String vasketVejnavn = AddressUtils.vaskVejnavn( split.vej );                                                                            
65                                    
66                  if (split.husnr.length() == 0) {                  if (split.husnr.length() == 0) {
67                          return new SearchResult(Status.ERROR_MISSING_HOUSENUMBER);                                                return new SearchResult(Status.ERROR_MISSING_HOUSENUMBER);                      
68                  }                  }
69                                    
70                    String vasketVejnavn = AddressUtils.vaskVejnavn( split.vej );
71                    
72                  Long gadeident =  postnrVeje.get(vasketVejnavn);                  Long gadeident =  postnrVeje.get(vasketVejnavn);
73                                    
74                                    

Legend:
Removed from v.2349  
changed lines
  Added in v.2358

  ViewVC Help
Powered by ViewVC 1.1.20