1. Home
  2. Developer API information
  3. Suggest CH postalCode

Suggest CH postalCode

Suggest a Swiss address.

Note: This is the documentation for the v2 API which is still in beta.

GET Example request:

https://api.pro6pp.nl/v2/suggest/ch/postalCode/?authKey=YOUR_AUTH_KEY&postalCode=5600

This application gives the following result:

200: Postal code suggestion(s) available
[
  {
    "lat": 46.92741604521225,
    "lng": 6.82400881638849,
    "settlements": [
      "Bevaix"
    ],
    "postalCode": "2022",
    "districts": [
      "Boudry"
    ],
    "cantons": [
      "Neuchâtel"
    ],
    "regions": [
      "Espace Mittelland"
    ]
  }
]

Error responses

401: Not authenticated
404: No results found