ValidateAddress

ValidateAddress standardizes and validates addresses using postal authority address data. It can correct information and format the address using the format preferred by the applicable postal authority. It also adds missing postal information, such as postal codes, city names, state/province names, and more.

ValidateAddress also returns result indicators about validation attempts, such as whether or not it validated the address, the level of confidence in the returned address, the reason for failure if the address could not be validated, and more.

During address matching and standardization, ValidateAddress separates address lines into components and compares them to the contents of the Universal Addressing Module databases. If a match is found, the input address is standardized to the database information. If no database match is found, it optionally formats the input addresses. The formatting process attempts to structure the address lines according to the conventions of the appropriate postal authority.

ValidateAddress is part of the Universal Addressing Module.

Resource URL

JSON endpoint:

http://server:port/rest/ValidateAddress/results.json

XML endpoint:

http://server:port/rest/ValidateAddress/results.xml

Example with JSON Response

The following example requests a JSON response:

http://myserver:8080/rest/ValidateAddress/results.json?​Data.AddressLine1=​1825+Kramer+Ln&Data.PostalCode=78758

The JSON returned by this request would be:

{
  "output_port": [
    {
      "Confidence": "100",
      "RecordType": "Normal",
      "CountryLevel": "A",
      "ProcessedBy": "USA",
      "MatchScore": "0",
      "AddressLine1": "1825 Kramer Ln",
      "City": "Austin",
      "StateProvince": "TX",
      "PostalCode": "78758-4260",
      "Country": "United States Of America",
      "PostalCode.Base": "78758",
      "PostalCode.AddOn": "4260",
      "user_fields": [
        
      ]
    }
  ]
}

Example with XML Response

The following example requests an XML response:

http://myserver:8080/rest/ValidateAddress/results.xml?Data.AddressLine1=​1825+Kramer+Ln&Data.PostalCode=78758

The XML returned by this request would be:

<ns2:xml.ValidateAddressResponse xmlns:ns2="http://www.precisely.com/spectrum/services/ValidateAddress">
   <ns2:output_port>
      <ns2:Address>
         <ns2:Confidence>93</ns2:Confidence>
         <ns2:RecordType>Normal</ns2:RecordType>
         <ns2:CountryLevel>A</ns2:CountryLevel>
         <ns2:ProcessedBy>USA</ns2:ProcessedBy>
         <ns2:MatchScore>0</ns2:MatchScore>
         <ns2:AddressLine1>1825 Kramer Ln</ns2:AddressLine1>
         <ns2:City>Austin</ns2:City>
         <ns2:StateProvince>TX</ns2:StateProvince>
         <ns2:PostalCode>78758-4260</ns2:PostalCode>
         <ns2:PostalCode.Base>78758</ns2:PostalCode.Base>
         <ns2:PostalCode.AddOn>4260</ns2:PostalCode.AddOn>
         <ns2:Country>United States Of America</ns2:Country>
         <ns2:user_fields/>
      </ns2:Address>
   </ns2:output_port>
</ns2:xml.ValidateAddressResponse>