1. Zuhause
  2. Informationen zur Entwickler-API
  3. Autovervollständigen CH

Autovervollständigen CH

Autocomplete a Swiss address.

Hinweis: Dies ist die Dokumentation für die v2-API, die sich noch im Beta-Stadium befindet.

GET Beispielanfrage:

https://api.pro6pp.nl/v2/autocomplete/ch/?authKey=YOUR_AUTH_KEY&postalCode=5600&street=Bifang&streetNumberAndPremise=1&settlement=Lenzburg

Diese Anwendung führt zu folgendem Ergebnis:

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
}

Fehlerreaktionen

401: Not authenticated
404: No results found