--- dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AdressSearch.java 2015/02/15 14:17:03 2300 +++ dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AdressSearch.java 2015/02/15 16:09:11 2301 @@ -31,6 +31,7 @@ int postnr=0; boolean google = false; + boolean osm = false; try { postnr = Integer.parseInt(postnrStr); @@ -53,6 +54,16 @@ } Long gadeident = postnrVeje.get(vasketVejnavn); + + if ( gadeident == null) { + String osmVej = GeocodeHelper.openstreetmapHelper(postnr, split.vej ); + if (osmVej != null) { + String osmVasket = AddressUtils.vaskVejnavn( osmVej ); + gadeident = postnrVeje.get(osmVasket); + osm = true; + } + } + if ( gadeident == null) { String googleVej = GeocodeHelper.googleHelper(postnr, split.vej ); if (googleVej != null) { @@ -86,6 +97,7 @@ SearchResult res = new SearchResult(addr); res.google = google; + res.osm = osm; return res; }