use of uk.me.parabola.mkgmap.general.CityInfo in project mkgmap by openstreetmap.
the class Numbers method getPolishCityInfo.
private String getPolishCityInfo(boolean left) {
CityInfo ci = getCityInfo(left);
if (ci == null)
return "-1";
StringBuilder sb = new StringBuilder();
if (ci.getCity() != null)
sb.append(ci.getCity());
sb.append(",");
if (ci.getRegion() != null)
sb.append(ci.getRegion());
sb.append(",");
if (ci.getCountry() != null)
sb.append(ci.getCountry());
return sb.toString();
}
use of uk.me.parabola.mkgmap.general.CityInfo in project mkgmap by openstreetmap.
the class RoadDef method resetImgData.
public void resetImgData() {
zipList = null;
cityList = null;
if (numbersList != null) {
for (Numbers num : numbersList) {
for (int side = 0; side < 2; side++) {
boolean left = side == 0;
CityInfo ci = num.getCityInfo(left);
if (ci != null)
ci.setImgCity(null);
ZipCodeInfo z = num.getZipCodeInfo(left);
if (z != null)
z.setImgZip(null);
}
}
}
}
Aggregations