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

Diff of /dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AdressSearch.java

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

revision 2304 by torben, Sun Feb 15 17:05:07 2015 UTC revision 2305 by torben, Sun Feb 15 17:09:02 2015 UTC
# Line 34  public class AdressSearch { Line 34  public class AdressSearch {
34                  int postnr=0;                  int postnr=0;
35                  boolean google = false;                  boolean google = false;
36                  boolean osm = false;                  boolean osm = false;
37                    String helperSearchKey = "";
38                                    
39                  try {                  try {
40                          postnr = Integer.parseInt(postnrStr);                          postnr = Integer.parseInt(postnrStr);
# Line 57  public class AdressSearch { Line 58  public class AdressSearch {
58                                    
59                  Long gadeident =  postnrVeje.get(vasketVejnavn);                  Long gadeident =  postnrVeje.get(vasketVejnavn);
60                                    
61                    
62                  if ( gadeident == null) {                  if ( gadeident == null) {
63                          gadeident = helperCache.get(vasketVejnavn);                          helperSearchKey = "" + postnr + "/" + vasketVejnavn;
64                            gadeident = helperCache.get(helperSearchKey);
65                  }                  }
66                                    
67                                    
# Line 71  public class AdressSearch { Line 74  public class AdressSearch {
74                                  gadeident =  postnrVeje.get(googleVasket);                                  gadeident =  postnrVeje.get(googleVasket);
75                                                                    
76                                  if (gadeident != null) {                                  if (gadeident != null) {
77                                          helperCache.put(vasketVejnavn, gadeident);                                          helperCache.put(helperSearchKey, gadeident);
78                                  }                                  }
79                          }                          }
80                  }                  }
# Line 85  public class AdressSearch { Line 88  public class AdressSearch {
88                                  gadeident =  postnrVeje.get(osmVasket);                                  gadeident =  postnrVeje.get(osmVasket);
89                                                                    
90                                  if (gadeident != null) {                                  if (gadeident != null) {
91                                          helperCache.put(vasketVejnavn, gadeident);                                          helperCache.put(helperSearchKey, gadeident);
92                                  }                                  }
93                          }                          }
94                  }                  }

Legend:
Removed from v.2304  
changed lines
  Added in v.2305

  ViewVC Help
Powered by ViewVC 1.1.20