1. Hjem
  2. Information om udvikler-API
  3. Autofuldførelse Schweiz Parametre

Autofuldførelse Schweiz Parametre

Autocomplete a Swiss address.

Bemærk: Dette er dokumentationen for v2-API'en, som stadig er i beta.

In case you don't know all of the required parameters, you can use the suggest call to gather them first.

If the input identifies a unique address, all available information about said address is returned.

  • To validate if an address has either a streetNumber or a Premise, query through the streetNumberAndPremise field.
  • To validate if an address exists with a certain streetnumber, use the streetNumber field.
  • To validate if an address exists with a certain premise, use both the streetNumber and premise fields.
  • Either streetNumberAndPremise or streetNumber is required. If both are given, only streetNumber is used.

Nødvendige parametre

  • postalCode (string): The address's postal code which consists of four digits
  • settlement (string): The address's settlement (city, town, village, or hamlet)
  • street (string): The address's street name

Valgfrie parametre

  • streetNumberAndPremise (string): The address's streetnumber and premise (extension/addition)
  • streetNumber (string): The address's streetnumber
  • premise (string): The address's premise

Autorisation

authKey: This is the Authorization key. You have to add it as a GET parameter. Your auth key can be found on the CMS.