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 |
|
|
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) { |
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) { |
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) { |