Address Capture consists of two main API requests: a Find request is used to narrow down a possible list of addresses; and a Retrieve request is used to retrieve a fully formatted address.
Parameter | Required | Type | Description |
---|---|---|---|
Key | Required | string | The key used to authenticate with the service. |
Text | Required | string | The search text to find. Ideally a postcode or the start of the address. |
Countries | Optional | array | A container for the search. This should only be another Id previously returned from this service when the Type of the result was not ‘Address’. |
Limit | Optional | string | The maximum number of results to return. |
Container | Optional | string | A container for the search. This should only be another Id previously returned from this service when the Type of the result was not ‘Address’. |
IsMiddleware | Optional | boolean | Whether the API is being called from a middleware implementation (and therefore the calling IP address should not be used for biasing). |
Origin | Optional | string | A starting location for the search. This can be the name or ISO 2 or 3 character code of a country, WGS84 coordinates (comma separated) or IP address to search from. |
Language | Optional | string | The preferred language for results. This should be a 2 or 4 character language code (e.g. en, fr, en-gb, en-us etc.). |
Bias | Optional | boolean | When Bias is set to True and when the Origin value provided is WGS84 coordinates or an IP address, this allows the user to find addresses that are near to them with less entry. When Bias is set to False, information provided in the Origin field will be used to prefer address matches from the country that Origin field identifies. |
Filters | Optional | string | You can include or exclude certain type of addresses or locations from the address matches presented back to end user. All Filters are currently operating on the basis of an exact match. Multiple Filters can be provided in the same request. |
Field | Type | Description |
---|---|---|
id | string | This can be an address Id or a container Id for further results. |
text | string | The name of the result. |
type | string | If the Type is ‘Address’ then the Id can be passed to the Retrieve service. Any other Id should be passed as the Container to a further Find request to get more results. |
description | string | Descriptive information about the result. |
highlight | string | A list of number ranges identifying the matched characters in the Text and Description. |
language | string | The language of the result |
Parameter | Required | Type | Description |
---|---|---|---|
Key | Required | string | The key used to authenticate with the service. |
id | Required | string | An Id resulting from a Find method to retrieve the details for. |
Field | Type | Description |
---|---|---|
id | string | The id of the result. |
domesticId | string | |
language | string | The language of this result. |
languageAlternatives | string | |
department | string | The ‘department’ part of the address. |
company | string | The ‘company’ part of the address. |
subBuilding | string | The ‘subBuilding’ part of the address. |
buildingNumber | string | The building number of the address. |
buildingName | string | The building name of the address. |
secondaryStreet | string | The ‘secondaryStreet’ part of the address. |
street | string | The ‘street’ part of the address. |
block | string | The ‘block’ part of the address. |
neighbourhood | string | The ‘neighbourhood’ part of the address. |
district | string | The ‘district’ part of the address. |
city | string | The ‘city’ part of the address. |
line1 | string | A formatted first line of the address. The line 1-5 properties attempt to format an address into usable lines. Depending on the length of the address the later lines may be empty. |
line2 | string | A formatted second line of the address. |
line3 | string | A formatted third line of the address. |
line4 | string | A formatted fourth line of the address. |
line5 | string | A formatted fifth line of the address. |
adminAreaName | string | The ‘adminAreaName’ part of the address. |
adminAreaCode | string | The ‘adminAreaCode’ part of the address. |
province | string | The ‘province’ part of the address. |
provinceName | string | The ‘provinceName’ part of the address. |
provinceCode | string | The ‘provinceCode’ part of the address. |
postalCode | string | The ‘postalCode’ part of the address. |
countryName | string | The ‘countryName’ part of the address. |
countryIso2 | string | The two character ISO representation of the address country. |
countryIso3 | string | The three character ISO representation of the address country. |
countryIsoNumber | string | The numerical ISO representation of the address country. |
sortingNumber1 | string | |
sortingNumber2 | string | |
barcode | string | |
poBoxNumber | string | The PO Box Number part of the address. |
label | string | A formatted label for the address. |
type | string | |
dataLevel | string | |
source | string |