/[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 2303 by torben, Sun Feb 15 16:53:13 2015 UTC revision 2304 by torben, Sun Feb 15 17:05:07 2015 UTC
# Line 64  public class AdressSearch { Line 64  public class AdressSearch {
64                                    
65                  if ( gadeident == null) {                  if ( gadeident == null) {
66                          String googleVej = GeocodeHelper.googleHelper(postnr, split.vej );                          String googleVej = GeocodeHelper.googleHelper(postnr, split.vej );
67                            google = true;
68                            
69                          if (googleVej != null) {                          if (googleVej != null) {
70                                  String googleVasket = AddressUtils.vaskVejnavn( googleVej );                                  String googleVasket = AddressUtils.vaskVejnavn( googleVej );
71                                  gadeident =  postnrVeje.get(googleVasket);                                  gadeident =  postnrVeje.get(googleVasket);
72                                  google = true;                                  
73                                  if (gadeident != null) {                                  if (gadeident != null) {
74                                          helperCache.put(googleVasket, gadeident);                                          helperCache.put(vasketVejnavn, gadeident);
75                                  }                                  }
76                          }                          }
77                  }                  }
78                                    
79                  if ( gadeident == null) {                  if ( gadeident == null) {
80                          String osmVej = GeocodeHelper.openstreetmapHelper(postnr, split.vej );                          String osmVej = GeocodeHelper.openstreetmapHelper(postnr, split.vej );
81                            osm = true;
82                            
83                          if (osmVej != null) {                          if (osmVej != null) {
84                                  String osmVasket = AddressUtils.vaskVejnavn( osmVej );                                  String osmVasket = AddressUtils.vaskVejnavn( osmVej );
85                                  gadeident =  postnrVeje.get(osmVasket);                                  gadeident =  postnrVeje.get(osmVasket);
86                                  osm = true;                                  
87                                  if (gadeident != null) {                                  if (gadeident != null) {
88                                          helperCache.put(osmVasket, gadeident);                                          helperCache.put(vasketVejnavn, gadeident);
89                                  }                                  }
90                          }                          }
91                  }                  }

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

  ViewVC Help
Powered by ViewVC 1.1.20