Postal code
WebService type: Rest
URL: ws.geonames.org/postalcodesearch?
Parameters: postalcode, placename, maxrows, Country
Result: returns a list of places for the placename/postalcode query as XML document
Example http://ws.geonames.org/postalCodeSearch? Postalcode = 9011 & maxrows = 10
Note: Don't forget to URL encode string parameters containing special characters or spaces. (FAQ entry on URL encoding)
This WebService is also available in JSON format for a javascript postal code autocomplete.
Supported countries
- Austria ()
- Australia (Au)
- Belgium (be)
- Bulgaria (BG)
- Canada,FSA only(Ca)
- Switzerland (CH)
- Czech Republic (CZ)
- Germany (de)
- Denmark (DK)
- Spain (es)
- Finland (FI)
- Faroe Islands (FO)
- France (FR)
- Greenland (GL)
- Gouadeloupe (GP)
- GUAM (GU)
- Guyana (Gy)
- Croatia (HR)
- Hungary (HU)
- Iceland (is)
- Italy (it)
- Liechtenstein (Li)
- Luxembourg (Lu)
- Macedonia (MK)
- Monaco (MC)
- Mexico CIO (MX)
- The Netherlands (NL)
- New Zealand (NZ)
- Norway (NO)
- Pakistan (PK)
- Poland (PL)
- Portugal (PT)
- Sweden (SE)
- Slovenia (SI)
- Slovakia (SK)
- San Marino (SM)
- Sri Lanka (lk)
- Thailand (th)
- United Kingdom (UK ),First three letters only
- United States (US)
- South Africa (za)
The WebService postalcodecountryinfo returns information on the available postal codes: http://ws.geonames.org/postalCodeCountryInfo?
Source:
Http://www.geonames.org/export/free-geocoding.html