Domanda

Want solution in Java which does the following:

Input :

  1. Locale code (Example: "en_US")
  2. Postal code(Example: "NH 3301") --> Valid

Similarly for any other country in the World, it should validate the corresponding Postal code.

Is there any Library for accomplishing this?

È stato utile?

Soluzione

You can go for GeoNames .
It provides us geographical database containing millions of placeholders and it covers almost all countries.
Hope this helps.
Comment if further help is required.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top