1. Accueil
  2. Informations sur l'API développeur
  3. Suggestion Belgique Code postal Réponses

Suggestion Belgique Code postal Réponses

Suggest a Belgium address field.

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

GET Exemple de requête:

https://api.pro6pp.nl/v2/suggest/be/postalCode?postalCode=1&authKey=YOUR_AUTH_KEY

Cette application donne le résultat suivant:

200: Postal code suggestion(s) available
[
  {
    "country": "Belgium",
    "countryCode": "BE",
    "lat": 50.84562,
    "lng": 4.35884,
    "municipality": "Brussel",
    "municipalityTranslations": [
      {
        "lang": "nl",
        "name": "Brussel"
      },
      {
        "lang": "fr",
        "name": "Bruxelles"
      },
      {
        "lang": "de",
        "name": "Brüssel"
      }
    ],
    "postalCode": "1000",
    "province": "Brussel",
    "provinceTranslations": [
      {
        "lang": "nl",
        "name": "Brussel"
      },
      {
        "lang": "fr",
        "name": "Bruxelles"
      },
      {
        "lang": "de",
        "name": "Brüssel"
      }
    ],
    "region": "Brussel",
    "regionTranslations": [
      {
        "lang": "nl",
        "name": "Brussel"
      },
      {
        "lang": "fr",
        "name": "Bruxelles"
      },
      {
        "lang": "de",
        "name": "Brüssel"
      }
    ],
    "settlements": [
      "Brussel"
    ],
    "settlementsTranslations": [
      [
        {
          "lang": "nl",
          "name": "Brussel"
        },
        {
          "lang": "fr",
          "name": "Bruxelles"
        },
        {
          "lang": "de",
          "name": "Brüssel"
        }
      ]
    ]
  }
]

Réponses d'erreur

401: Not authenticated
404: No results found