Classic API — Address ADR

Support DQE
Support DQE
  • Updated

Use the /ADR/ endpoint as the second step in the funnel address search flow. Search for streets within a city using the IDLocalite returned by /CP/. Then pass the returned IDVoie and IDNum to /COMPL/ to retrieve address complements.

GET request

Endpoint

https://{SERVER_ADDRESS}/ADR/?IDLocalite={CITY_ID}&Adresse={ADDRESS}&Instance={VALUE}&Pays={COUNTRY_CODE}&Taille={LENGTH}&Version=1.1&Licence={LICENCE_CODE}&Langue={LANGUAGE}

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
IDLocalite{CITY_ID}City ID returned by /CP/.Mandatory
Adresse{ADDRESS}User input for the street name.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.
Instance{VALUE}Allows you to pass a value during the call, returned in the response.Optional
Version1.1Populates the LieuDit field for small towns in France.Optional
Langue{LANGUAGE}For Japan only: JP Kanji, JK Katakana, EN English.Optional

POST request

Endpoint

https://{SERVER_ADDRESS}/ADR/

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
IDLocalite{CITY_ID}City ID returned by /CP/.Mandatory
Adresse{ADDRESS}User input for the street name.Mandatory
Pays{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Taille{LENGTH}Character limit for the address.Optional. Default: 38. Recommended minimum: 32.
Instance{VALUE}Allows you to pass a value during the call.Optional
Version1.1Populates the LieuDit field for small towns in France.Optional
Langue{LANGUAGE}For Japan only: JP Kanji, JK Katakana, EN English.Optional

Response

Success response

The JSON response is a dictionary whose keys are numbered from 1 to n. Each element contains one street suggestion.

{
  "1": {
    "label": "Retkeilijänkatu|00980 Helsinki",
    "valid_num": 0,
    "Num": "",
    "Numero": "",
    "ListeNumero": "1;2;3;4;5;6;7A;7B;8;9;10;11;12;13;15;16;18",
    "Nbnumero": 17,
    "NbNumero": 17,
    "NumSeul": "",
    "Saisie": "Retkeilijänkatu",
    "Pays": "FIN",
    "Complement": "",
    "Voie": "Retkeilijänkatu",
    "CodeVoie": "225242",
    "IDVoie": "225242",
    "IDLocalite": "4265",
    "Instance": 1,
    "CodePostal": "00980",
    "Localite": "Helsinki",
    "Province": "Uusimaa",
    "LieuDit": "",
    "Longitude": "",
    "Latitude": "",
    "Region1": "Uusimaa",
    "Region2": "",
    "Region3": "",
    "Suburb": "",
    "TypeVoie": ""
  }
}
KeyValueIn JSON response for all countries?Format if in JSON response
SaisieText input passed in the parameter and used to search the street.YesSTRING(255)
IDLocaliteUnique code for each city. INSEE code for France.YesSTRING(20)
PaysISO country code.YesSTRING(3)
CodePostalCity postal code.YesSTRING(10)
LocaliteName of the city.YesSTRING(50)
RoudisRoudis code (France only).NoNA
InstanceValue passed in the request and returned in the response.YesSTRING(3)
CedexIndicates whether the result is a Cedex: 1 = Cedex, 0 = not Cedex.NoSTRING(1)
LatitudeLatitude of the centre of the locality.NoDECIMAL(8)
LongitudeLongitude of the centre of the locality.NoDECIMAL(8)
IDVoieUnique number identifying the street.YesSTRING(20)
VoieStreet name.YesSTRING(50)
NumeroStreet number with complement (bis, ter, etc.).YesSTRING(10)
NumStreet number with complement (bis, ter, etc.).NoSTRING(10)
NbnumeroNumber of house numbers in the street.NoSTRING(4)
NbNumeroNumber of house numbers in the street.YesSTRING(4)
ListeNumeroList of available house numbers in the street.YesSTRING(1024)
TypeVoieStreet type (street, avenue, etc.).NoSTRING(20)
CodeVoieUnique number identifying the street.YesSTRING(20)
ComplementAdditional address information.NoSTRING(150)
Complement2Additional address information 2.NoSTRING(50)
LieuDitDependent locality if applicable.YesSTRING(50)
EntrepriseCompany name.NoSTRING(255)
labelLabel displayed for auto-completion.NoSTRING(255)
ProvinceRegion where the city is located.NoSTRING(50)
Region1Region.NoSTRING(50)
Region2County.NoSTRING(50)
Region3County.NoSTRING(50)
SuburbSuburb.NoSTRING(50)
ThoroughfareDependent street. UK only.NoUK only
valid_num1: the number exists in the street. 0: the number does not exist in the street.NoINTEGER(1)

Error response

Error typeRequestResponse type
Missing Licence parameterhttps://{SERVER_ADDRESS}/ADR/?IDLocalite=13201&Adresse=post&Instance=0&Pays=FRA&Taille=38&Version=1.1Empty response
Empty Licence parameterhttps://{SERVER_ADDRESS}/ADR/?IDLocalite=13201&Adresse=post&Instance=0&Pays=FRA&Taille=38&Licence=&Version=1.1Empty response
Incorrect licence numberhttps://{SERVER_ADDRESS}/ADR/?IDLocalite=13201&Adresse=post&Instance=0&Pays=FRA&Taille=38&Licence={INCORRECT_LICENCE_CODE}&Version=1.1Empty response
Missing IDLocalite parameterhttps://{SERVER_ADDRESS}/ADR/?Adresse=post&Instance=0&Pays=FRA&Taille=38&Licence={LICENCE_CODE}&Version=1.1400 Bad Request error
Missing Adresse parameterhttps://{SERVER_ADDRESS}/ADR/?IDLocalite=13201&Instance=0&Pays=FRA&Taille=38&Licence={LICENCE_CODE}&Version=1.1400 Bad Request error
Missing Pays parameterhttps://{SERVER_ADDRESS}/ADR/?IDLocalite=13201&Adresse=post&Instance=0&Taille=38&Licence={LICENCE_CODE}&Version=1.1400 Bad Request error
Error on a parameterhttps://{SERVER_ADDRESS}/ADR/?Aresse=PYREN&IDLocalite=75120&Pays=FRA&Taille=38&Licence={LICENCE_CODE}400 Bad Request error

Was this article helpful?

0 out of 0 found this helpful