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 (AT)
- 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)
- Mexcio (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?
?
原文出处:
http://www.geonames.org/export/free-geocoding.html