Restful Address — checkaddress

Support DQE
Support DQE
  • Updated

Use the /checkaddress/ endpoint to verify and normalise an existing address. The API checks whether the address is valid, corrects formatting, and returns a quality score. Unlike the autocomplete endpoints, /checkaddress/ takes a complete address as input and returns the normalised result.

GET request

Endpoint

https://{SERVER_ADDRESS}/{VERSION}/checkaddress/?Address={INPUT}&Length={LENGTH}&Country={COUNTRY_CODE}&Suggestion={PROP}&Modification=O&Version={VERSION_JSON}&Licence={LICENCE_CODE}&Segmentation={Segmentation}

The Address parameter must follow this pipe-separated format:

additional address|address|dependent locality or state|zip code|city

All pipes are mandatory even when a section is empty. Examples:

  • ||75008|Paris
  • |12 rue de la Paix||75001|Paris

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
VERSION{VERSION}Version of the API (e.g. v1).Mandatory
Licence{LICENCE_CODE}Licence code assigned to your account or token generated by oauth2.Mandatory
Address{INPUT}Address to verify. Pipe-separated format: additional address|address|dependent locality or state|zip code|city.Mandatory
Country{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Length{LENGTH}Character limit for the address.Optional. Default: 38. Recommended minimum: 32.
Suggestion{PROP}France only. O: returns multiple address options. S: returns state and suggestions.Optional
ModificationOWhen set to O, indicates which address fields were adjusted in the response.Optional
Version{VERSION_JSON}1.1: returns geocoding precision (LatLonLabel, LatLonCode). 2: adds complement list.Optional
Segmentation{Segmentation}When set to O, adds Sprofil, Sportrait, and Ssegment to the response. Default: N.Optional

POST request

Endpoint

https://{SERVER_ADDRESS}/{VERSION}/checkaddress/

Add the parameters below in the request body using x-www-form-urlencoded. The Address parameter must use the same pipe-separated format as the GET request.

ParameterValueDescriptionMandatory/Optional
Licence{LICENCE_CODE}Licence code assigned to your account or token generated by oauth2.Mandatory
Address{INPUT}Address to verify. Pipe-separated format.Mandatory
Country{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Length{LENGTH}Character limit for the address.Optional. Default: 38. Recommended minimum: 32.
Suggestion{PROP}France only. O: multiple options. S: state + suggestions.Optional
ModificationOWhen set to O, indicates which fields were adjusted.Optional
Version{VERSION_JSON}1.1: geocoding precision. 2: adds complement list.Optional
Segmentation{Segmentation}O: adds Sprofil, Sportrait, Ssegment. Default: N.Optional

Response

Success response

The JSON response contains a Found count and an Addresses array. When Suggestion is not set, only one element is returned.

{
  "Found": 3,
  "Addresses": [
    {
      "Address": "8 VICTOR HUGO",
      "PostalCode": "92300",
      "City": "LEVALLOIS PERRET",
      "Hamlet": "",
      "SpecialDistribution": "",
      "Country": "FRA",
      "StateCode": "*",
      "SubLocality": "",
      "CityId": "92044",
      "Input": "",
      "Label": "",
      "AdditionalAddress": "",
      "StreetNumber": "",
      "StreetType": "",
      "Street": "VICTOR HUGO",
      "StreetId": "",
      "IsValidStreetNumber": "",
      "StreetNumberListCount": "",
      "StreetNumberList": "",
      "StreetNumberOnly": "8",
      "StateLabel": "",
      "AdministrativeArea": "",
      "Suburb": "",
      "Company": "",
      "Latitude": "48.8927685421544",
      "Longitude": "2.28767174943166",
      "Informations": {
        "AdditionalAddressComp": "",
        "StreetNumberComp": "",
        "DQEDetailCode": "50",
        "DQEErrorAddressLabel": "KO",
        "StreetNumberId": "",
        "PostalCityId": "37847",
        "IrisCode": "",
        "RoudisCode": "",
        "LatLonLabel": "",
        "LatLonCode": "",
        "IsAddressChanged": "1",
        "ChangedAddressTag": ""
      }
    },
    {
      "Address": "8 SQUARE VICTOR HUGO",
      "PostalCode": "92300",
      "City": "LEVALLOIS PERRET",
      "Hamlet": "",
      "SpecialDistribution": "",
      "Country": "FRA",
      "StateCode": "*",
      "SubLocality": "",
      "CityId": "92044",
      "Input": "",
      "Label": "",
      "AdditionalAddress": "",
      "StreetNumber": "",
      "StreetType": "SQUARE",
      "Street": "VICTOR HUGO",
      "StreetId": "1749909",
      "IsValidStreetNumber": "",
      "StreetNumberListCount": "",
      "StreetNumberList": "8",
      "StreetNumberOnly": "8",
      "StateLabel": "",
      "AdministrativeArea": "",
      "Suburb": "",
      "Company": "",
      "Latitude": "48.894735",
      "Longitude": "2.298562",
      "Informations": {
        "AdditionalAddressComp": "",
        "StreetNumberComp": "",
        "DQEDetailCode": "10",
        "DQEErrorAddressLabel": "OK",
        "StreetNumberId": "92044227P2",
        "PostalCityId": "37847",
        "IrisCode": "0122",
        "RoudisCode": "",
        "LatLonLabel": "",
        "LatLonCode": "",
        "IsAddressChanged": "1",
        "ChangedAddressTag": ""
      }
    },
    {
      "Address": "8 RUE VICTOR HUGO",
      "PostalCode": "92300",
      "City": "LEVALLOIS PERRET",
      "Hamlet": "",
      "SpecialDistribution": "",
      "Country": "FRA",
      "StateCode": "*",
      "SubLocality": "",
      "CityId": "92044",
      "Input": "",
      "Label": "",
      "AdditionalAddress": "",
      "StreetNumber": "",
      "StreetType": "RUE",
      "Street": "VICTOR HUGO",
      "StreetId": "1749869",
      "IsValidStreetNumber": "",
      "StreetNumberListCount": "",
      "StreetNumberList": "8",
      "StreetNumberOnly": "8",
      "StateLabel": "",
      "AdministrativeArea": "",
      "Suburb": "",
      "Company": "",
      "Latitude": "48.893157",
      "Longitude": "2.300094",
      "Informations": {
        "AdditionalAddressComp": "",
        "StreetNumberComp": "",
        "DQEDetailCode": "10",
        "DQEErrorAddressLabel": "OK",
        "StreetNumberId": "920442292P",
        "PostalCityId": "37847",
        "IrisCode": "0122",
        "RoudisCode": "",
        "LatLonLabel": "",
        "LatLonCode": "",
        "IsAddressChanged": "1",
        "ChangedAddressTag": ""
      }
    }
  ]
}
KeyDescription
FoundNumber of address results returned.
AddressFull normalised address line.
PostalCodePostal code.
CityCity name.
HamletDependent locality or hamlet.
SpecialDistributionCedex or special distribution indicator.
CountryISO country code.
StateCodeState or region code.
SubLocalitySub-locality.
CityIdUnique city identifier.
InputInput text used for the search.
LabelNormalised address label.
AdditionalAddressAdditional address information.
StreetNumberStreet number with complement.
StreetTypeStreet type.
StreetStreet name.
StreetIdStreet identifier.
IsValidStreetNumbertrue: the street number exists. false: the street number does not exist.
StreetNumberListCountNumber of available street numbers.
StreetNumberListList of available street numbers.
StreetNumberOnlyStreet number without complement.
StateLabelState or region label.
AdministrativeAreaAdministrative area.
SuburbSuburb.
CompanyCompany name.
LatitudeLatitude of the address.
LongitudeLongitude of the address.
Informations.AdditionalAddressCompAdditional address complement.
Informations.StreetNumberCompStreet number complement.
Informations.DQEDetailCodeDetailed quality code. See schema below.
Informations.DQEErrorAddressLabelQuality label.
Informations.StreetNumberIdStreet number identifier.
Informations.PostalCityIdPostal city identifier.
Informations.IrisCodeIris code.
Informations.RoudisCodeRoudis code.
Informations.LatLonLabelGeocoding precision label (when Version=1.1). See table below.
Informations.LatLonCodeGeocoding precision code (when Version=1.1). See table below.
Informations.IsAddressChangedtrue: the address was modified. false: no modification.
Informations.ChangedAddressTag5-character code indicating which fields were modified (same structure as CodeModification in Classic API).

DQEDetailCode schema

DQEDetailCode schema

The DQEDetailCode field returns one of the following quality codes:

CodeDescriptionInternal DescriptionUI Display
10Correct addressValid addressValid address
20Correct address (street not recognized, but it is a CEDEX or P.O. box)Valid addressValid address
21Small town, street number out of rangePlease confirm the address with the client (street number does not exist)Please check your postal address
22Small town, street number missing (the rest of the address is correct)Please confirm the address with the client (street number missing)Please check your postal address
23Large city, street number out of rangePlease confirm the address with the client (street number does not exist)Please check your postal address
24Large city, street number missing (the rest of the address is correct)Please confirm the address with the client (street number missing)Please check your postal address
25CEDEX address unknown to CEDEXA (if CEDEXA is active)Valid addressValid address
30Small town, street not recognizedPlease confirm the address with the client (street name not found)Please check your postal address
31Small town, street not recognizedPlease confirm the address with the client (street name not found)Please check your postal address
40Small town, street missing (district information recognized, but not enough to deduce the street)Please confirm the address with the client (street name not found)Please check your postal address
41Small town, street missingPlease confirm the address with the client (street name missing)Please check your postal address
50Large city, street not recognizedPlease confirm the address with the client (street name not found)Please check your postal address
51 (France only)Large city, street not recognized (district information recognized, but not enough to deduce the street)Please confirm the address with the client (street name not found)Please check your postal address
60Large city, street missing (district information recognized, but not enough to deduce the street)Please confirm the address with the client (street name not found)Please check your postal address
61Large city, street missingPlease confirm the address with the client (street name missing)Please check your postal address
70Postal code/City not correctable (street present)Address is incorrect. The postal code/city do not match.Please check your postal address
71Postal code/City not correctable (street missing)Address is incorrect. The postal code/city do not match.Please check your postal address
80Input “address” block emptyAddress not filled inPlease check your postal address
81Input “address” block emptyAddress not filled inPlease check your postal address
90International address detectedValid addressValid address
95Missing or incorrect country codeMissing or incorrect country codePlease check your postal address

LatLonLabel / LatLonCode (when Version=1.1)

These fields describe the geocoding precision level.

LatLonLabelLatLonCodeDescription
1ENTREEMain access point to an open or closed enclosure, to a group of buildings or to a piece of land (address plate).
2BATIMENTBuilding or part of a building.
3ESCALIERSStairwell, normally inside a building.
4LOGEMENTHousing or room inside a building.
5PARCELLE CADASTRALECadastral parcel.
6SEGMENT DE VOIEPosition derived from the segment of the connecting street. Modification of some BAN data because located outside the city polygon, but on the same street.
7POINT D ACCESS TECHNIQUETechnical access point, for example room with water, electricity, gas shut offs, etc.
8POINT DELIVRANCE POSTALEPostal delivery point (mailbox).
9ZONE D ADRESSAGEPoint placed in the dependent locality.
10CENTRE VILLECenter of the city.
0CENTRE DE LA VOIEPoint in the center of the street.
90A CONTROLERTo check.
99NON PRESENTENot available.

Error response

Errors are returned as JSON in the following format:

{
  "status": 400,
  "message": "...",
  "details": "...",
  "error": "..."
}
StatusCause
400Missing mandatory parameter (Address or Country), or invalid parameter value.
401Missing, empty, or incorrect Licence parameter.

Was this article helpful?

0 out of 0 found this helpful