COMPLV2 response success
The JSON response is a dictionary whose keys are the numbers from 1 to n and where each element is itself a dictionary containing the following keys:
Examples:
- https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1456244&IDNum=22&Taille=38&Pays
=FRA&Licence={LICENCE_CODE} - https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1751437&IDNum=23&Taille=38&Pays
=FRA&Licence={LICENCE_CODE} - https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1357366&IDNum=116&Taille=38&Pays
=FRA&Licence={LICENCE_CODE}
Key | Value | France | International |
Batiment | Additional address information if applicable | STRING(38) | STRING(150) |
CodePostal | Postal code linked to the additional address information if applicable | Not available | STRING(10) |
Longitude | Longitude code of the center of the city | DECIMAL(18) | DECIMAL(18) |
Latitude | Latitude code of the center of the city | DECIMAL(18) | DECIMAL(18) |
If you subscribe to the Iris and Ilot codes, you will have, in addition to the keys described above, the following keys upon activation of your license:
Key | Value | France | International |
Status_IrisIlot | Origin of IRIS and Ilot codes | STRING(5) | N/A |
ilot | Îlot code | STRING(9) | N/A |
iris | Iris code | STRING(9) | N/A |
Example :
- Without subscription to the Iris and Ilot codes:
{
"1": {
"Batiment": "CHRISTY VIENER, FL 4",
"CodePostal": "10020-2400"
},
"2": {
"Batiment": "FL 4",
"CodePostal": "10020-2402"
},
"3": {
"Batiment": "SALANS HERTZFELD HELBRONN, FL 4",
"CodePostal": "10020-2400"
},
"4": {
"Batiment": "TERRAPIN PARTNERS, FL 4",
"CodePostal": "10020-2400"
},
"Latitude": "40.758224999999996",
"Longitude": "-73.977428"
}
- With subscription to the Iris and Ilot codes:
{
"1": {
"Batiment": "BATIMENT A"
},
"2": {
"Batiment": "BATIMENT B"
},
"3": {
"Batiment": "BATIMENT C"
},
"4": {
"Batiment": "BATIMENT D"
},
"iris": "5101",
"ilot": "1330015",
"Longitude": "2.36184219788525",
"Latitude": "48.8190056386452",
"Status_IrisIlot": "INSEE"
}
COMPLV2 response error
Error type | Request | Response type |
Missing “Licence” parameter | https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1456244& IDNum=22&Taille=38&Pays=FRA |
Empty response |
Empty “Licence” parameter | https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1456244& IDNum=22&Taille=38&Pays=FRA&Licence= |
Empty response |
Incorrect licence number | https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1456244& IDNum=22&Taille=38&Pays=FRA&Licence={INCORRECT_LICENCE_CODE} |
Empty response |
Missing “IDVoie” parameter | https://{SERVER_ADDRESS}/COMPLV2/?IDNum=22&Taille= 38&Pays=FRA&Licence={LICENCE_CODE} |
400 Bad Request error |
Missing “IDNum” parameter |
https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1456244& |
400 Bad Request error |
Missing “Pays” parameter | https://{SERVER_ADDRESS}/COMPLV2/?IDVoie=1456244& IDNum=22&Taille=38&Licence={LICENCE_CODE} |
400 Bad Request error |
Error on a parameter | https://{SERVER_ADDRESS}/COMPLV2/?IVoie=1456244&IDNum=22&Taille=38&Pays= FRA&Licence={LICENCE_CODE} |
400 Bad Request error |
Related to