Method:
DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress
You can use this method when you have the start of an address you wish to search against the Australian and New Zealand PAFs. This method is perfect for Predictive Search rapid address capture.
Please Note:
Special conditions apply to the use of this method. This method must always be used in conjunction with a retrieve method - either the DataTools.Capture.Address.Predictive.AuPaf.RetrieveAddress or DataTools.Capture.Address.Predictive.NzPaf.RetrieveAddress. If a retrieve method is not called, or not utilised with an appropriate retrieve ratio to searches, an auto retrieve cost will be applied to your account to ensure you do not breach the data licencing conditions.
Test:
Input Parameters:
Output Fields:
Field | Description |
RecordId | Record ID used to retrieve further information |
AddressLine | Address Line eg. 'Level 5 200 Smith St' |
Locality | Locality, Suburb or Town |
State | State for Australian addresses eg. NSW, VIC. City for New Zealand addresses eg. Palmerston North |
Postcode | Postcode |
Country | Country Name eg. 'Australia' |
CountryCode | ISO 3166-2 character country code eg. 'AU' |
Supported Web Service API Interfaces:
Web Service Method: ProcessQueryStringRequest (REST with QueryString)
Request Format: Url QueryString, Body (x-www-form-urlencoded),
Response Formats: JSON, XML*,
Protocols: HTTP GET, HTTPS GET, HTTP POST, HTTPS POST, HTTP OPTIONS, HTTPS OPTIONS
Example Server Path: https://customname.datatoolscloud.net.au/KleberWebService/DtKleberService.svc
Sample QueryString Request:
/ProcessQueryStringRequest?Method=DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress&AddressLine=&ResultLimit=&DisplayOnlyCountryCode=&AddressTypes=&SearchOption=&RecordIDPrefix=&RequestId=&RequestKey=&DepartmentCode=
Sample JSON Response:
{
"DtResponse":{
"RequestId":"",
"ResultCount":"1",
"ErrorMessage":"",
"Result":[
{
"RecordId":"",
"AddressLine":"",
"Locality":"",
"State":"",
"Postcode":"",
"Country":"",
"CountryCode":""
}
]
}
}
Web Service Method: ProcessQueryJsonRequest (REST with JSON)
Request Format: Body (Raw JSON),
Response Formats: JSON, XML*,
Protocols: HTTP GET, HTTPS GET, HTTP POST, HTTPS POST, HTTP OPTIONS, HTTPS OPTIONS
Example Server Path: https://customname.datatoolscloud.net.au/KleberWebService/DtKleberService.svc
Single Request
Sample JSON Request:
{
"DtRequest":{
"Method":"DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress",
"AddressLine":"",
"ResultLimit":"",
"DisplayOnlyCountryCode":"",
"AddressTypes":"",
"SearchOption":"",
"RecordIDPrefix":"",
"RequestId":"",
"RequestKey":"",
"DepartmentCode":""
}
}
Sample JSON Response:
{
"DtResponse":{
"RequestId":"",
"ResultCount":"1",
"ErrorMessage":"",
"Result":[
{
"RecordId":"",
"AddressLine":"",
"Locality":"",
"State":"",
"Postcode":"",
"Country":"",
"CountryCode":""
}
]
}
}
Multiple Requests
Sample JSON Request:
{
"DtRequests":{
"DtRequest":[
{
"Method":"DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress",
"AddressLine":"",
"ResultLimit":"",
"DisplayOnlyCountryCode":"",
"AddressTypes":"",
"SearchOption":"",
"RecordIDPrefix":"",
"RequestId":"",
"RequestKey":"",
"DepartmentCode":""
},
{
"Method":"DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress",
"AddressLine":"",
"ResultLimit":"",
"DisplayOnlyCountryCode":"",
"AddressTypes":"",
"SearchOption":"",
"RecordIDPrefix":"",
"RequestId":"",
"RequestKey":"",
"DepartmentCode":""
}
]
}
}
Sample JSON Response:
{
"DtResponses":{
"ErrorMessage":"",
"DtResponse":[
{
"RequestId":"",
"ResultCount":"1",
"ErrorMessage":"",
"Result":[
{
"RecordId":"",
"AddressLine":"",
"Locality":"",
"State":"",
"Postcode":"",
"Country":"",
"CountryCode":""
}
]
},
{
"RequestId":"",
"ResultCount":"1",
"ErrorMessage":"",
"Result":[
{
"RecordId":"",
"AddressLine":"",
"Locality":"",
"State":"",
"Postcode":"",
"Country":"",
"CountryCode":""
}
]
}
]
}
}
Web Service Method: ProcessQueryXmlRequest (REST with XML)
Request Format: Body (Raw XML),
Response Formats: JSON, XML*,
Protocols: HTTP GET, HTTPS GET, HTTP POST, HTTPS POST, HTTP OPTIONS, HTTPS OPTIONS
Example Server Path: https://customname.datatoolscloud.net.au/KleberWebService/DtKleberService.svc
Single Request
Sample XML Request:
<DtRequest Method="DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress" AddressLine="" ResultLimit="" DisplayOnlyCountryCode="" AddressTypes="" SearchOption="" RecordIDPrefix="" RequestId="" RequestKey="" DepartmentCode="" />
Sample XML Response:
<DtResponse RequestId="" ResultCount="1" ErrorMessage="">
<Result RecordId="" AddressLine="" Locality="" State="" Postcode="" Country="" CountryCode="" />
</DtResponse>
Multiple Requests
Sample XML Request:
<DtRequests>
<DtRequest Method="DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress" AddressLine="" ResultLimit="" DisplayOnlyCountryCode="" AddressTypes="" SearchOption="" RecordIDPrefix="" RequestId="" RequestKey="" DepartmentCode="" />
<DtRequest Method="DataTools.Capture.Address.Predictive.AuNzPaf.SearchAddress" AddressLine="" ResultLimit="" DisplayOnlyCountryCode="" AddressTypes="" SearchOption="" RecordIDPrefix="" RequestId="" RequestKey="" DepartmentCode="" />
</DtRequests>
Sample XML Response:
<DtResponses ErrorMessage="">
<DtResponse RequestId="" ResultCount="1" ErrorMessage="">
<Result RecordId="" AddressLine="" Locality="" State="" Postcode="" Country="" CountryCode="" />
</DtResponse>
<DtResponse RequestId="" ResultCount="1" ErrorMessage="">
<Result RecordId="" AddressLine="" Locality="" State="" Postcode="" Country="" CountryCode="" />
</DtResponse>
</DtResponses>
* Add the additional input parameter "OutputFormat=json" or "OutputFormat=xml" to change the response format from default.
* Add the additional input parameter "callback" to convert JSON responses to JSONP responses for across domains support.
CORS header included where callback is not defined.
Please Note:
Ensure you thoroughly test all the methods you are using and are happy with the results before going into production. DataTools is charged by the data suppliers for use of every method – therefore
ALL calls to any method will incur a COST. When you register DataTools provides you with free credit to help with development and trialling of the service. Once that credit is used you will need to purchase a monthly subscription and/or top up to continue using the service, even for development purposes. Please check the Method Pricing List for all current costs. DataTools does not warrant or guarantee the quality of the results returned and will not be held responsible for any costs incurred by using a method. Should you have any questions please contact your Sales representative or the Client Services team.