Search in sources :

Example 11 with CityInfo

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();
}
Also used : CityInfo(uk.me.parabola.mkgmap.general.CityInfo)

Example 12 with CityInfo

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);
            }
        }
    }
}
Also used : CityInfo(uk.me.parabola.mkgmap.general.CityInfo) ZipCodeInfo(uk.me.parabola.mkgmap.general.ZipCodeInfo)

Aggregations

CityInfo (uk.me.parabola.mkgmap.general.CityInfo)12 ZipCodeInfo (uk.me.parabola.mkgmap.general.ZipCodeInfo)6 ArrayList (java.util.ArrayList)5 LongArrayList (it.unimi.dsi.fastutil.longs.LongArrayList)4 Int2IntOpenHashMap (it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap)3 Coord (uk.me.parabola.imgfmt.app.Coord)3 MapRoad (uk.me.parabola.mkgmap.general.MapRoad)3 Int2ObjectOpenHashMap (it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap)2 Long2ObjectOpenHashMap (it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 LinkedHashMap (java.util.LinkedHashMap)2 LinkedHashSet (java.util.LinkedHashSet)2 Numbers (uk.me.parabola.imgfmt.app.net.Numbers)2 MultiHashMap (uk.me.parabola.util.MultiHashMap)2 List (java.util.List)1 TreeMap (java.util.TreeMap)1 City (uk.me.parabola.imgfmt.app.lbl.City)1 LBLFile (uk.me.parabola.imgfmt.app.lbl.LBLFile)1 Zip (uk.me.parabola.imgfmt.app.lbl.Zip)1