Suggestion Suisse Numéro de rue Réponses
Suggest a Swiss address.
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/ch/streetNumber/?authKey=YOUR_AUTH_KEY&settlement=Lenzburg&street=Bifang&streetNumber=1
Cette application donne le résultat suivant:
200: streetnumber suggestion(s) available
[
{
"lat": 47.3883125768773,
"lng": 8.15796840242818,
"district": "Lenzburg",
"postalCode": "5600",
"canton": "Aargau",
"region": "Northwestern Switzerland",
"settlement": "Lenzburg",
"street": "Bifang",
"streetNumber": 1,
"premiseRequired": false
}
]
Réponses d'erreur
401: Not authenticated
404: No results found