Classic API — Address COMPLV2

Support DQE
Support DQE
  • Updated

Use the /COMPLV2/ endpoint to retrieve building or apartment complement details for an address selected from a /SINGLEV2/ response. Pass the IDVoie and IDNum values returned by /SINGLEV2/ as input.

GET request

Endpoint

https://{SERVER_ADDRESS}/COMPLV2/?IDVoie={STREET_ID}&IDNum={NUM}&Taille={LENGTH}&Pays={COUNTRY_CODE}&Filter={FILTER}&Licence={LICENCE_CODE}

Replace the values in braces with your own information.

ParameterValueDescriptionMandatory/Optional
SERVER_ADDRESS{SERVER_ADDRESS}Address of the DQE server that will process the data.Mandatory
Licence{LICENCE_CODE}Licence code assigned to your account or token generated by oauth2.Mandatory
IDVoie{STREET_ID}Street ID returned by /SINGLEV2/.Mandatory
IDNum{NUM}Street number ID returned by /SINGLEV2/.Mandatory
Pays{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Taille{LENGTH}Character limit for the address. Works only on Latin addresses.Optional. Default: 38. Recommended minimum: 32.
Filter{FILTER}USA only. Filters complement types (e.g. apt).Optional

POST request

Endpoint

https://{SERVER_ADDRESS}/COMPLV2/

Add the parameters below in the request body using x-www-form-urlencoded.

ParameterValueDescriptionMandatory/Optional
Licence{LICENCE_CODE}Licence code assigned to your account or token generated by oauth2.Mandatory
IDVoie{STREET_ID}Street ID returned by /SINGLEV2/.Mandatory
IDNum{NUM}Street number ID returned by /SINGLEV2/.Mandatory
Pays{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Taille{LENGTH}Character limit for the address. Works only on Latin addresses.Optional. Default: 38. Recommended minimum: 32.
Filter{FILTER}USA only. Filters complement types.Optional

Response

Success response

The JSON response is a dictionary whose keys are numbered from 1 to n. Each element contains one address complement (building, apartment, etc.).

{
  "1": {
    "Batiment": "CHRISTY VIENER, FL 4",
    "CodePostal": "10020-2400"
  },
  "2": {
    "Batiment": "FL 4",
    "CodePostal": "10020-2402"
  },
  "Latitude": "40.758224999999996",
  "Longitude": "-73.977428"
}

Example with optional fields:

{
  "1": {
    "Batiment": "BATIMENT A"
  },
  "2": {
    "Batiment": "BATIMENT B"
  },
  "iris": "5101",
  "ilot": "1330015",
  "Longitude": "2.36184219788525",
  "Latitude": "48.8190056386452",
  "Status_IrisIlot": "INSEE"
}

 

KeyValueFranceInternational
BatimentBuilding or apartment complement label.STRING(38)STRING(150)
CodePostalPostal code.Not availableSTRING(10)
LongitudeLongitude of the address.DECIMAL(18)DECIMAL(18)
LatitudeLatitude of the address.DECIMAL(18)DECIMAL(18)
Status_IrisIlotGeocoding status for Iris/Ilot (France only, requires licence option).STRINGNot available
ilotIlot code (France only, requires licence option).STRINGNot available
irisIris code (France only, requires licence option).STRINGNot available

Error response

Error typeResponse type
Missing or incorrect Licence parameterEmpty response
Missing IDVoie parameter400 Bad Request
Missing IDNum parameter400 Bad Request
Missing Pays parameter400 Bad Request

Related to

Was this article helpful?

0 out of 0 found this helpful