1. Home
  2. Developer API information
  3. Autocomplete Switzerland Responses

Autocomplete Switzerland Responses

Autocomplete 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/autocomplete/ch/?authKey=YOUR_AUTH_KEY&postalCode=5600&street=Bifang&streetNumberAndPremise=1&settlement=Lenzburg

This application gives the following result:

200: Location found
{
  "country": "Switzerland",
  "countryCode": "CH",
  "lat": 47.3883125768773,
  "lng": 8.15796840242818,
  "settlement": "Lenzburg",
  "region": "Northwestern Switzerland",
  "canton": "Aargau",
  "district": "Lenzburg",
  "postalCode": "5600",
  "street": "Bifang",
  "streetNumber": 1
}

Error responses

401: Not authenticated
404: No results found