java/converter/src/main/java/be/bosa/dt/best/converter/writer/BestWriterCSVEmptyStreets.java
/**
	 * Fill lookup maps for postal info.
	 * This zip code is only available via an address (i.e. with house number), not on a street level.
	 * So use addresses to collect city/postal names and postal codes, and use the city names to guess the
	 * postal code when a street has no addresses attached to it.
	 * This will not work 100% correct, because a city can have multiple postal codes
	 * 
	 * @param a address
	 * @param cacheCities cities
	 * @param postalNL map with Duth city name as key
	 * @param postalFR map with French city name as key
	 * @param postalDE map with German city name as key
	 */
Fill lookup maps for postal info.
This zip code is only available via an address , not on a street level.
So use addresses to collect city/postal names and postal codes, and use the city names to guess the
postal code when a street has no addresses attached to it.
This will not work 100% correct, because a city can have multiple postal codes


Fill lookup maps for postal info . This zip code is only available via an address not on a street level . So use addresses to collect city / postal names and postal codes and use the city names to guess the postal code when a street has no addresses attached to it . This will not work 100% correct because a city can have multiple postal codes
private void fillPostals(Address a, Map<String, String[]> cacheCities,
							Map<String, String[]> postalNL, Map<String, String[]> postalFR, 
							Map<String, String[]> postalDE) {
		String[] city = cacheCities.get(a.getCity().getId());
		String[] values = new String[] { a.getPostal().getId(), city[0], city[1], city[2] };
		fillPostal(postalNL, city[0], values);
		fillPostal(postalFR, city[1], values);
		fillPostal(postalDE, city[2], values);
	}
private void fillPostals ( Address a , Map < String , String [ ] > cacheCities , Map < String , String [ ] > postalNL , Map < String , String [ ] > postalFR , Map < String , String [ ] > postalDE ) { String [ ] city = cacheCities . get ( a . getCity ( ) . getId ( ) ) ; String [ ] values = new String [ ] { a . getPostal ( ) . getId ( ) , city [ 0 ] , city [ 1 ] , city [ 2 ] } ; fillPostal ( postalNL , city [ 0 ] , values ) ; fillPostal ( postalFR , city [ 1 ] , values ) ; fillPostal ( postalDE , city [ 2 ] , values ) ; }
Fill lookup maps for postal info.
Fill lookup maps for postal info .