1. Accueil
  2. Informations sur l'API développeur
  3. Saisie automatique Suisse Paramètres

Saisie automatique Suisse Paramètres

Autocomplete a Swiss address.

Remarque : Il s'agit de la documentation de l'API v2 qui est toujours en version bêta.

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.

Paramètres requis

  • 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

Paramètres optionnels

  • 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.