/[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 2300 by torben, Sun Feb 15 14:17:03 2015 UTC revision 2301 by torben, Sun Feb 15 16:09:11 2015 UTC
# Line 31  public class AdressSearch { Line 31  public class AdressSearch {
31                                    
32                  int postnr=0;                  int postnr=0;
33                  boolean google = false;                  boolean google = false;
34                    boolean osm = false;
35                                    
36                  try {                  try {
37                          postnr = Integer.parseInt(postnrStr);                          postnr = Integer.parseInt(postnrStr);
# Line 53  public class AdressSearch { Line 54  public class AdressSearch {
54                  }                  }
55                                    
56                  Long gadeident =  postnrVeje.get(vasketVejnavn);                  Long gadeident =  postnrVeje.get(vasketVejnavn);
57                    
58                    if ( gadeident == null) {
59                            String osmVej = GeocodeHelper.openstreetmapHelper(postnr, split.vej );
60                            if (osmVej != null) {
61                                    String osmVasket = AddressUtils.vaskVejnavn( osmVej );
62                                    gadeident =  postnrVeje.get(osmVasket);
63                                    osm = true;
64                            }
65                    }
66                    
67                  if ( gadeident == null) {                  if ( gadeident == null) {
68                          String googleVej = GeocodeHelper.googleHelper(postnr, split.vej );                          String googleVej = GeocodeHelper.googleHelper(postnr, split.vej );
69                          if (googleVej != null) {                          if (googleVej != null) {
# Line 86  public class AdressSearch { Line 97  public class AdressSearch {
97                                    
98                  SearchResult res = new SearchResult(addr);                  SearchResult res = new SearchResult(addr);
99                  res.google = google;                  res.google = google;
100                    res.osm = osm;
101                  return res;                  return res;
102          }          }
103                    

Legend:
Removed from v.2300  
changed lines
  Added in v.2301

  ViewVC Help
Powered by ViewVC 1.1.20