/[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 2371 by torben, Tue Feb 24 12:16:10 2015 UTC revision 2372 by torben, Tue Feb 24 20:38:56 2015 UTC
# Line 62  public class AdressSearch { Line 62  public class AdressSearch {
62                  }                  }
63                                    
64                                    
65                  result.splitReult = AddressUtils.splitAdresse(adresse);                  result.splitResult = AddressUtils.splitAdresse(adresse);
66                                                                                                    
67                                    
68                  if (result.splitReult.husnr.length() == 0) {                  if (result.splitResult.husnr.length() == 0) {
69                          result.status = Status.ERROR_MISSING_HOUSENUMBER;                          result.status = Status.ERROR_MISSING_HOUSENUMBER;
70                          return result;                          return result;
71                  }                  }
72                                    
73                  String vasketVejnavn = AddressUtils.vaskVejnavn( result.splitReult.vej );                  String vasketVejnavn = AddressUtils.vaskVejnavn( result.splitResult.vej );
74                                    
75                  Long gadeident =  postnrVeje.get(vasketVejnavn);                  Long gadeident =  postnrVeje.get(vasketVejnavn);
76                                    
# Line 83  public class AdressSearch { Line 83  public class AdressSearch {
83                                    
84                  if ( gadeident == null) {                  if ( gadeident == null) {
85                          if (config.useGoogle) {                          if (config.useGoogle) {
86                                  result.googleVej = GeocodeHelper.googleHelper(config, postnr, result.splitReult.vej );                                  result.googleVej = GeocodeHelper.googleHelper(config, postnr, result.splitResult.vej );
87                                  result.google = true;                                  result.google = true;
88                                                                    
89                                  if (result.googleVej != null) {                                  if (result.googleVej != null) {
# Line 99  public class AdressSearch { Line 99  public class AdressSearch {
99                                    
100                  if ( gadeident == null) {                  if ( gadeident == null) {
101                          if (config.useOpenStreetMaps) {                          if (config.useOpenStreetMaps) {
102                                  result.osmVej = GeocodeHelper.openstreetmapHelper(config, postnr, result.splitReult.vej );                                  result.osmVej = GeocodeHelper.openstreetmapHelper(config, postnr, result.splitResult.vej );
103                                  result.osm = true;                                  result.osm = true;
104                                                                    
105                                  if (result.osmVej != null) {                                  if (result.osmVej != null) {
# Line 125  public class AdressSearch { Line 125  public class AdressSearch {
125                  }                  }
126                                    
127                                    
128                  String husnrSearch = "" + result.splitReult.husnr + result.splitReult.litra;                  String husnrSearch = "" + result.splitResult.husnr + result.splitResult.litra;
129                  Address addr = gade.get(husnrSearch);                  Address addr = gade.get(husnrSearch);
130    
131                  if (addr == null) {                  if (addr == null) {

Legend:
Removed from v.2371  
changed lines
  Added in v.2372

  ViewVC Help
Powered by ViewVC 1.1.20