AutoCompleteLoqate

AutoCompleteLoqate offers real-time entry of address data for fast, accurate results. Users are returned instant results based on each character entered into the form, ensuring only accurate data is entered into the database. AutoCompleteLoqate also includes the Powersearch option, which reduces input time by up to 80% for 238 countries by using data in the form of an index file.

Resource URL

JSON endpoint:

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

XML endpoint:

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

Example with JSON Response

The following example requests a JSON response:

http://myserver:8080/rest/AutoCompleteLoqate/results.json?Data.AddressLine1=1+Global

The JSON returned by this request would be:

Note: To make the example easier to read, empty response elements have been removed and only the first three address matches are shown.
{"output_port": [
      {
      "ProcessedBy": "LOQATE",
      "HouseNumber": "1",
      "AddressLine1": "1 Global Vw",
      "FirmName": "Map Info",
      "City": "Troy",
      "StateProvince": "NY",
      "PostalCode": "12180-8399",
      "Country": "United States",
      "PostalCode.AddOn": "8399",
      "user_fields": []
   },
      {
      "ProcessedBy": "LOQATE",
      "HouseNumber": "1",
      "AddressLine1": "1 Global Pl",
      "City": "Glendale",
      "StateProvince": "AZ",
      "PostalCode": "85306-3216",
      "Country": "United States",
      "PostalCode.AddOn": "3216",
      "user_fields": []
   },
      {
      "ProcessedBy": "LOQATE",
      "HouseNumber": "1",
      "AddressLine1": "1 Global Dr",
      "City": "Olive Hill",
      "StateProvince": "KY",
      "PostalCode": "41164-6739",
      "Country": "United States",
      "PostalCode.AddOn": "6739",
      "user_fields": []
   }
]}

Example with XML Response

The following example requests an XML response:

http://myserver:8080/rest/AutoCompleteLoqate/results.xml?Data.AddressLine1=1+Global

The XML returned by this request would be:

Note: To make the example easier to read, empty response elements have been removed and only the first three address matches are shown.
<ns2:xml.AutoCompleteLoqateResponse xmlns:ns2="http://www.precisely.com/spectrum/services/AutoCompleteLoqate">
   <ns2:output_port>
      <ns2:Address>
         <ns2:ProcessedBy>LOQATE</ns2:ProcessedBy>
         <ns2:HouseNumber>1</ns2:HouseNumber>
         <ns2:AddressLine1>1 Global Vw</ns2:AddressLine1>
         <ns2:FirmName>Map Info</ns2:FirmName>
         <ns2:City>Troy</ns2:City>
         <ns2:StateProvince>NY</ns2:StateProvince>
         <ns2:PostalCode>12180-8399</ns2:PostalCode>
         <ns2:PostalCode.AddOn>8399</ns2:PostalCode.AddOn>
         <ns2:Country>United States</ns2:Country>
      </ns2:Address>
      <ns2:Address>
         <ns2:ProcessedBy>LOQATE</ns2:ProcessedBy>
         <ns2:HouseNumber>1</ns2:HouseNumber>
         <ns2:AddressLine1>1 Global Pl</ns2:AddressLine1>
         <ns2:City>Glendale</ns2:City>
         <ns2:StateProvince>AZ</ns2:StateProvince>
         <ns2:PostalCode>85306-3216</ns2:PostalCode>
         <ns2:PostalCode.AddOn>3216</ns2:PostalCode.AddOn>
         <ns2:Country>United States</ns2:Country>
      </ns2:Address>
      <ns2:Address>
         <ns2:ProcessedBy>LOQATE</ns2:ProcessedBy>
         <ns2:HouseNumber>1</ns2:HouseNumber>
         <ns2:AddressLine1>1 Global Dr</ns2:AddressLine1>
         <ns2:City>Olive Hill</ns2:City>
         <ns2:StateProvince>KY</ns2:StateProvince>
         <ns2:PostalCode>41164-6739</ns2:PostalCode>
         <ns2:PostalCode.AddOn>6739</ns2:PostalCode.AddOn>
         <ns2:Country>United States</ns2:Country>
      </ns2:Address>
   </ns2:output_port>
</ns2:xml.AutoCompleteLoqateResponse>