GetCandidateAddressesLoqate

GetCandidateAddressesLoqate returns a list of addresses that are considered matches for a given input address. GetCandidateAddressesLoqate returns candidate addresses only if the input address matches multiple addresses in the postal database. If the input address matches only one address in the postal database, then no address data is returned. The Country input field is required; if this field is blank, no output will be returned.

Note: By default, GetCandidateAddressesLoqate does not match to individual house numbers. Rather, it uses house number ranges for each street. After GetCandidateAddressesLoqate has determined the street name, city name, state/province name, and postal code, it checks to make sure the input house number falls within one of the ranges of house numbers given for the matched street name. The same type of logic applies to unit numbers.

GetCandidateAddressesLoqate is part of Spectrum Universal Address.

Resource URL

http://server:port/soap/GetCandidateAddressesLoqate

Example

The following shows a SOAP request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:get="http://www.precisely.com/spectrum/services/GetCandidateAddressesLoqate"
xmlns:spec="http://spectrum.precisely.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <get:GetCandidateAddressesLoqateRequest>
         <get:input_port>
            <get:Address>
               <get:AddressLine1>PO Box 1</get:AddressLine1>
               <get:City>New York</get:City>
               <get:StateProvince>NY</get:StateProvince>
            </get:Address>
         </get:input_port>
      </get:GetCandidateAddressesLoqateRequest>
   </soapenv:Body>
</soapenv:Envelope>

This would be the response:

Note: Empty response elements have been removed from this example. Only the first two candidate address are shown.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:GetCandidateAddressesLoqateResponse xmlns:ns2="http://spectrum.precisely.com/"
       xmlns:ns3="http://www.precisely.com/spectrum/services/GetCandidateAddressesLoqate">
         <ns3:output_port>
            <ns3:Address>
               <ns3:ProcessedBy>LOQATE</ns3:ProcessedBy>
               <ns3:AddressLine1>PO Box 101</ns3:AddressLine1>
               <ns3:City>New York Mls</ns3:City>
               <ns3:StateProvince>NY</ns3:StateProvince>
               <ns3:PostalCode>13417-0101</ns3:PostalCode>
               <ns3:PostalCode.AddOn>0101</ns3:PostalCode.AddOn>
               <ns3:Country>USA</ns3:Country>
            </ns3:Address>
            <ns3:Address>
               <ns3:ProcessedBy>LOQATE</ns3:ProcessedBy>
               <ns3:AddressLine1>PO Box 102</ns3:AddressLine1>
               <ns3:City>New York Mls</ns3:City>
               <ns3:StateProvince>NY</ns3:StateProvince>
               <ns3:PostalCode>13417-0102</ns3:PostalCode>
               <ns3:PostalCode.AddOn>0102</ns3:PostalCode.AddOn>
               <ns3:Country>USA</ns3:Country>
            </ns3:Address>
         </ns3:output_port>
      </ns3:GetCandidateAddressesLoqateResponse>
   </soap:Body>
</soap:Envelope>