Restful Address — funneladdress

Support DQE
Support DQE
  • Updated

Use the /funneladdress/ endpoint as the second step in the Restful funnel address search flow. Search for streets within a city using the CityId returned by /funnelpostcode/. Then pass the returned StreetId and StreetNumber to /funnelcompl/ to retrieve address complements.

GET request

Endpoint

https://{SERVER_ADDRESS}/{VERSION}/funneladdress/?CityId={CITY_ID}&Country={COUNTRY_CODE}&Street={INPUT}&Licence={LICENCE_CODE}&Limit={INTEGER}&Length={LENGTH}&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
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
CityId{CITY_ID}City ID returned by /funnelpostcode/.Mandatory
Country{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Street{INPUT}User input for the street name.Mandatory
Limit{INTEGER}Limits the number of returned responses.Optional
Length{LENGTH}Character limit for the address.Optional. Recommended minimum: 32.
Langue{LANGUAGE}For Japan only: JP Kanji, JK Katakana, EN English.Optional

POST request

Endpoint

https://{SERVER_ADDRESS}/{VERSION}/funneladdress/

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
CityId{CITY_ID}City ID returned by /funnelpostcode/.Mandatory
Country{COUNTRY_CODE}ISO 3-letter country code.Mandatory
Street{INPUT}User input for the street name.Mandatory
Limit{INTEGER}Limits the number of returned responses.Optional
Length{LENGTH}Character limit for the address.Optional. Recommended minimum: 32.
Langue{LANGUAGE}For Japan only: JP Kanji, JK Katakana, EN English.Optional

Response

Success response

The JSON response contains a Found count and an Addresses array. Each element contains one street suggestion.

{
  "Found": 1,
  "Addresses": [
    {
      "PostalCode": "108-6390",
      "City": "ミナトク",
      "Hamlet": "",
      "SpecialDistribution": "",
      "Country": "JPN",
      "StateCode": "13",
      "SubLocality": "",
      "CityId": "402574",
      "Input": "108-6390",
      "Label": "〒108-6390 トウキョウトミナトクミタ",
      "AdditionalAddress": "",
      "StreetNumber": "",
      "StreetType": "",
      "Street": "ミタ",
      "StreetId": "558204",
      "IsValidStreetNumber": 1,
      "StreetNumberListCount": 0,
      "StreetNumberList": "",
      "StreetNumberOnly": "",
      "StateLabel": "トウキョウト",
      "AdministrativeArea": "ミナトク",
      "Suburb": "",
      "Company": "",
      "Latitude": "",
      "Longitude": ""
    }
  ]
}
FieldMeaningAlways in JSON?Type / Format
PostalCodePostal / ZIP code.YesSTRING(10-20)
CityCity / ward name.YesSTRING(50)
HamletHamlet or dependent locality.YesSTRING(50), may be empty
SpecialDistributionSpecial distribution flag.YesSTRING(1), may be empty
CountryISO country code.YesSTRING(3)
StateCodeState or prefecture code.YesSTRING(10)
StateLabelState or prefecture label.YesSTRING(50)
AdministrativeAreaAdministrative area.YesSTRING(50)
SubLocalitySub-locality information.YesSTRING(50), may be empty
SuburbSuburb or district.YesSTRING(255), may be empty
CityIdUnique city identifier.YesSTRING(20)
InputUser input value.YesSTRING(50)
LabelFormatted display label.YesSTRING(255)
StreetStreet name.YesSTRING(255), may be empty
StreetIdStreet identifier.YesSTRING(20), may be empty
StreetTypeStreet type.YesSTRING(50), may be empty
StreetNumberStreet or house number.YesSTRING(20), may be empty
StreetNumberOnlyNumeric part of the street number.YesSTRING(20), may be empty
StreetNumberListList of valid street numbers.YesSTRING(1024), may be empty
StreetNumberListCountNumber of items in StreetNumberList.YesINTEGER
IsValidStreetNumberIndicates whether the street number is valid.YesINTEGER
AdditionalAddressAdditional address line.YesSTRING(255), may be empty
CompanyCompany name.YesSTRING(255), may be empty
LatitudeLatitude coordinate.YesDECIMAL(18), empty string possible
LongitudeLongitude coordinate.YesDECIMAL(18), empty string possible

Error response

Errors are returned as JSON in the following format:

{
  "status": 400,
  "message": "Bad Request",
  "details": "Missing mandatory parameter: CityId",
  "error": "Bad Request"
}
StatusCause
400Missing mandatory parameter, or invalid parameter value.
401Missing, empty, or incorrect Licence parameter.

Was this article helpful?

0 out of 0 found this helpful