Changeset 24228 in osm


Ignore:
Timestamp:
2010-11-14T18:58:49+01:00 (14 years ago)
Author:
oliverw
Message:

Removed debug output, added validation support for RU, MX and LT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/PostalCodeChecker.java

    r24227 r24228  
    137137                        System.out.println("//postalCodePatternMap.put(\"" + countries[i] + "\", \"[0-9]{5}\");");
    138138                }
    139                 */
     139               
    140140                String x = "A9999AAA";
    141141               
     
    156156                                System.err.println(xxx[i]);
    157157                        }
    158                 }
     158                }*/
    159159                // see http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html for country codes
    160160                //
     
    300300                //postalCodePatternMap.put("LR", "[0-9]{5}");
    301301                //postalCodePatternMap.put("LS", "[0-9]{5}");
    302                 //postalCodePatternMap.put("LT", "[0-9]{5}");
     302                postalCodePatternMap.put("LT", "[0-9]{5}");
    303303                postalCodePatternMap.put("LU", "[0-9]{4}");
    304304                postalCodePatternMap.put("LV", "[0-9]{4}");
     
    324324                //postalCodePatternMap.put("MV", "[0-9]{5}");
    325325                //postalCodePatternMap.put("MW", "[0-9]{5}");
    326                 //postalCodePatternMap.put("MX", "[0-9]{5}");
     326                postalCodePatternMap.put("MX", "[0-9]{5}"); // Mexico
    327327                //postalCodePatternMap.put("MY", "[0-9]{5}");
    328328                //postalCodePatternMap.put("MZ", "[0-9]{5}");
     
    358358                postalCodePatternMap.put("RO", "[0-9]{6}");
    359359                //postalCodePatternMap.put("RS", "[0-9]{5}");
    360                 //postalCodePatternMap.put("RU", "[0-9]{5}");
     360                postalCodePatternMap.put("RU", "[0-9]{6}");
    361361                //postalCodePatternMap.put("RW", "[0-9]{5}");
    362362                //postalCodePatternMap.put("SA", "[0-9]{5}");
     
    390390                //postalCodePatternMap.put("TN", "[0-9]{5}");
    391391                //postalCodePatternMap.put("TO", "[0-9]{5}");
    392                 postalCodePatternMap.put("TR", "[0-9]{5}");
     392                postalCodePatternMap.put("TR", "[0-9]{5}"); // turky
    393393                //postalCodePatternMap.put("TT", "[0-9]{5}");
    394394                //postalCodePatternMap.put("TV", "[0-9]{5}");
Note: See TracChangeset for help on using the changeset viewer.