Return Swiss postal codes within range of a given postal code
Note: This is the documentation for the v2 API which is still in beta.
This will return all postal codes within a range of a given postal code or city.
- Either the
postalCode(string): The address's postal code which consists of four digits
settlement(string): The address's settlement (city, town, village, or hamlet)
searchRange(integer): The range to search, in meters. Maximum 100000.
maxResults(integer): The amount of results returned, a number between 0 and 999.
includeInitialPostalCode(boolean): Option whether to include the initial postal code in /v2/range calls. If the value is True, then the initial postal code is included in the search.
authKey: This is the Authorization key. You have to add it as a GET parameter.
Your auth key can be found on the CMS.