Free Geocoding Webservice
Postal code
Webservice Type : REST
Url : api.geonames.org/postalCodeSearch?
Parameters : postalcode ,placename,maxRows,country
Result : returns a list of places for the placename/postalcode query as xml document
Example
http://api.geonames.org/postalCodeSearch?postalcode=9011&maxRows=10&username=demo
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
- Andorra (AD)
- Argentina (AR)
- Austria (AT)
- Australia (AU)
- Bangladesh (BD)
- Belgium (BE)
- Bulgaria (BG)
- Brazil (BR)
- Canada (CA), FSA only
- Switzerland (CH)
- Czech Republic (CZ)
- Germany (DE)
- Denmark (DK)
- Dominican Republic (DO)
- Spain (ES)
- Finland (FI)
- Faroe Islands (FO)
- France (FR)
- United Kingdom (GB) , Contains Royal Mail data Royal Mail copyright and database right 2010.
- French Guiana (GF)
- Greenland (GL)
- Guadeloupe (GP)
- Guatemala (GT)
- Croatia (HR)
- Hungary (HU)
- India (IN)
- Iceland (IS)
- Italy (IT)
- Japan (JP)
- Liechtenstein (LI)
- Sri Lanka (LK)
- Lithuania (LT)
- Luxembourg (LU)
- Monaco (MC)
- Moldova (MD)
- Macedonia (MK)
- Martinique (MQ)
- Mexico (MX)
- Malaysia (MY)
- Netherlands (NL)
- Norway (NO)
- New Zealand (NZ)
- Philippines (PH)
- Pakistan (PK)
- Poland (PL)
- Saint Pierre and Miquelon (PM)
- Portugal (PT)
- Reunion (RE)
- Russia (RU)
- Sweden (SE)
- Slovenia (SI)
- Slovakia (SK)
- San Marino (SM)
- Thailand (TH)
- Turkey (TR)
- United States (US)
- Vatican City (VA)
- Wallis and Futuna (WF)
- Mayotte (YT)
- South Africa (ZA)
The webservice postalCodeCountryInfo returns information on the available postal codes :
http://api.geonames.org/postalCodeCountryInfo?username=demo