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
https://OnDemandServer/rest/ValidateAddress/results.json
XML endpoint:
http://server:port/rest/ValidateAddress/results.xml
https://OnDemandServer/rest/ValidateAddress/results.xml
For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.
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
https://spectrum.precisely.com/rest/ValidateAddress/results.json?Data.AddressLine1=1825+Kramer+Ln&Data.PostalCode=78758
{
"output_port" : [{
"Confidence" : "0",
"CountryLevel" : "A",
"ProcessedBy" : "USA",
"MatchScore" : " ",
"City" : "Austin",
"City.Result" : "A",
"StateProvince" : "TX",
"StateProvince.Result" : "A",
"PostalCode" : "78758",
"PostalCode.Result" : "U",
"PostalCode.Base" : "78758",
"Country" : "United States Of America",
"AdditionalInputData.Base" : "",
"StreetName.Result" : "U",
"StreetName.PreferredAlias.Result" : "",
"StreetName.AbbreviatedAlias.Result" : "",
"PostalCode.Input" : "78758",
"USFIPSCountyNumber" : "",
"USCongressionalDistrict" : "",
"USLOTCode" : "",
"USLOTSequence" : "",
"USAltAddr" : "",
"USLastLineNumber" : "",
"USFinanceNumber" : "",
"USLACS" : "N",
"DPV" : "U",
"DPVFootnote" : "",
"CMRA" : "U",
"DPV.EnhancedReturnCode" : "",
"ValidZipFlag" : "N",
"DPVPBSA" : "",
"POBoxOnlyDeliveryZone" : "",
"ProbableCorrectness" : " ",
"Status" : "F",
"Status.Code" : "InsufficientInputData",
"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
https://spectrum.precisely.com/rest/ValidateAddress/results.xml?Data.AddressLine1=1825+Kramer+Ln&Data.PostalCode=78758
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xml.ValidateAddressResponse xmlns="http://www.pb.com/spectrum/services/ValidateAddress">
<output_port>
<Address>
<Confidence>0</Confidence>
<CountryLevel>A</CountryLevel>
<ProcessedBy>USA</ProcessedBy>
<MatchScore> </MatchScore>
<City>Austin</City>
<City.Result>A</City.Result>
<StateProvince>TX</StateProvince>
<StateProvince.Result>A</StateProvince.Result>
<PostalCode>78758</PostalCode>
<PostalCode.Result>U</PostalCode.Result>
<PostalCode.Base>78758</PostalCode.Base>
<Country>United States Of America</Country>
<AdditionalInputData.Base/>
<StreetName.Result>U</StreetName.Result>
<StreetName.PreferredAlias.Result/>
<StreetName.AbbreviatedAlias.Result/>
<PostalCode.Input>78758</PostalCode.Input>
<USFIPSCountyNumber/>
<USCongressionalDistrict/>
<USLOTCode/>
<USLOTSequence/>
<USAltAddr/>
<USLastLineNumber/>
<USFinanceNumber/>
<USLACS>N</USLACS>
<DPV>U</DPV>
<DPVFootnote/>
<CMRA>U</CMRA>
<DPV.EnhancedReturnCode/>
<ValidZipFlag>N</ValidZipFlag>
<DPVPBSA/>
<POBoxOnlyDeliveryZone/>
<ProbableCorrectness> </ProbableCorrectness>
<Status>F</Status>
<Status.Code>InsufficientInputData</Status.Code>
<user_fields/>
</Address>
</output_port>
</xml.ValidateAddressResponse>