The Address Autocomplete Express API Service searches a country dataset and returns a list of predicted address matches. If requested, the API can sort the list to provide location biased results. Addresses within the specified search radius are listed first, followed by other matches in the country dataset.
The Address Autocomplete Express API Service uses STANDARD match mode. It requires a close match and generates a moderate number of match candidates.
This method consumes credits.
HTTP Request:
- URL Composition
Base URL: https://api.cloud.precisely.com
Address Autocomplete Express:
/v1/express-autocomplete - Supported Methods: POST only
- Rate Limit (Transactions per second): 120
- Input Fields Each request to the API service requires
parameters, which are listed below. All requests require a
Bearer token that can be generated using your account's
key-secret. To produce a bearer token for an API request, the
generated key-secret combinations are used. The generated token
is valid for 3600sec (1 hour), then it needs to be regenerated.
The data should be encoded as a JSON array, where each element in the array is a JSON object with field names identical to those in the input and output fields listed below.
Address Autocomplete Express sample request{ "preferences": { "maxResults": 5, "customPreferences": { "SEARCH_TYPE": "ADDRESS" }, "originXY": [], "distance": { "value": 150, "distanceUnit": "METER" } },"address": { "addressLines": [ "One global view" ], "country": "USA" } }Table 1. Parameters Parameter Description preferencesOptions supported by Address Autocomplete Express. addressesList of addresses to be processed.
preferences Parameters
Below are the preferences for Address
Autocomplete Express service. The only matchMode
| Option | Type | Description |
|---|---|---|
|
String |
Which Index to search.
|
|
distance |
(Optional) If you specify
distance values, the
response will first list
prediction values that are
within distance:value
distance:distanceUnit from
originXY. It will only
return predictions that contain terms that
exactly match terms in the request's
addressLines. The response
will then list prediction
values outside the radius that span the whole
country dataset.
|
maxResults |
Integer |
(Optional) The maximum number of candidates to return. This must be an integer value. The default is 10. The maximum allowed is 10. |
originXY |
<Double> array | XY coordinates of the origin address.
{
"preferences" :
{
"originXY" : [-73.70252500000001, 42.68323]
}
}
|
| X-Transaction-Id (header) |
String | To efficiently manage a high volume of API calls and maintain organization, we group API calls for the same address into a single "transaction." A transaction is considered complete when one of the following conditions is met:
whichever happens first. The Transaction ID (GUID)
must be sent as part of the If the same Transaction ID is reused after a transaction is marked complete, our system will treat it as a new transaction while keeping the same ID. Examples: 15-Second Scenario: A
user starts typing an address and includes a Transaction ID
(e.g.,
12-Call Scenario: Another user types quickly and
includes a Transaction ID (e.g., 1234-5678-ABCD) in the
x-transaction-id header:
5678-1234-EFGH) in
the x-transaction-id header:
|
clientLocale |
String |
Two‑letter language code ( |
filterBias |
String |
Specifies how the service should scope or prioritize results based on the provided filters. Two modes are supported:
Use this parameter to control whether the service enforces strict filtering or applies preference‑based ranking. |
address Parameters
addressLines and country.
All other address fields are not honored.The following table lists the request parameters for the Address Autocomplete Express service:
| Parameter | Type | Description |
|---|---|---|
addressLines |
List | Address to search for, based on the country's
addressing standard. Example single-line request: |
country |
String | Values are based on the ISO 3166-1 standard for country codes (returned in alpha-2, alpha-3, or numeric format). |