122 |
return list; |
return list; |
123 |
} |
} |
124 |
|
|
125 |
public ArrayList<Adresse> hentDaekkedeAdresser( BoundingBox bbox) throws SQLException { |
public Adresse[] hentDaekkedeAdresser( BoundingBox bbox) throws SQLException { |
126 |
String sql = "SELECT id,postnr,adresse,gadeid,husnr,husnrbogstav,latitude,longitude,rute " + |
String sql = "SELECT id,postnr,adresse,gadeid,husnr,husnrbogstav,latitude,longitude,rute " + |
127 |
"FROM fulddaekning.adressetabel " + |
"FROM fulddaekning.adressetabel " + |
128 |
"WHERE rute IS NOT NULL " + |
"WHERE rute IS NOT NULL " + |
142 |
stmt.setDouble(4, bbox.longitudeMax); |
stmt.setDouble(4, bbox.longitudeMax); |
143 |
stmt.setString(5, Lookup.distributor); |
stmt.setString(5, Lookup.distributor); |
144 |
|
|
145 |
return hentAdresseListe( stmt ); |
List<Adresse> list = hentAdresseListe( stmt ); |
146 |
|
return list.toArray( new Adresse[ list.size() ] ); |
147 |
|
|
148 |
} |
} |
149 |
|
|