cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all addresses in one suggestion list using Data Services realtime Web Service?

Former Member
0 Kudos

Hi,

We are using http://<host>:<port>/DataServices/servlet/webservices?ver=2.1 - "Service_Realtime_DQ_Addr_check_Suggestions" to implement an Address Search functionality in a third party UI. I do understand that if I use this Web Service to search for addresses based on a Post code, it will bring back a list of address suggestions - But this will not be the complete list of all addresses and I will have to make multiple calls with Reply_1 filled up (based on the Suggestion_status) to drill down the hierarchy of addresses. For Example:

First Web Service Call : Search based on Post Code: B15 2EN.

The Result is: Suggestion status = 'A' and the Suggestion Count = 6 and the suggestion list as below:

2   Langley Walk, Birmingham, B15 2EN      - This is an apartment   

12 Langley Walk, Birmingham, B15 2EN      - House

14 Langley Walk, Birmingham, B15 2EN       - House

16 Langley Walk, Birmingham, B15 2EN       - House  

18 Langley Walk, Birmingham, B15 2EN       - House

20 Langley Walk, Birmingham, B15 2EN       - House

Second Web Service Call : Now, to get all the addresses corresponding to apartment "2   Langley Walk, Birmingham, B15 2EN", I will have to make another call with Reply_1 = 1

The result will now be Suggestion status = 'U' and the Suggestion Count = 52 and the suggestion list with the 52 addresses listed as below:

Apt 1 , 2   Langley Walk, Birmingham, B15 2EN

.

.

.

Apt 52 , 2   Langley Walk, Birmingham, B15 2EN


Question 1: Is there anyway I can merge Web Service Call 1 and 2 into one single call - Basically I do not want to make multiple round trips..I would like to get all the addresses listed out in one call (In the example I have provided above, My first call should bring back 5 + 52 = 57 Addresses in the suggestion list. (Similar to the QAS Address Search Web Service) - Please let me know if this is possible?

Looking forward to your suggestions. Thanks.

Regards,

Arun

Accepted Solutions (1)

Accepted Solutions (1)

virginia_hagen
Active Participant
0 Kudos

The best way to get the engine to give you the suggestion you want is to present the data in the expected way to have the tool make an assignment.   It tries to make the assignment in one pass.  Giving it only a postcode makes it look like you don't want it to be make an assignment at all, but query to look at what is in it.    This is not how the GAC transform is designed. 

With the UK, if you give it the primary range, in this case 2, and the postcode, B15 2EN, you should get the suggestions for this address that you want, without the round trip.

I'm making an assumption here based on how the engine works and the fact that you identified the other data as houses, not apartments.  I didn't actually look at the data for this address.  But if you put pass it Primary range of 12 and the postcode of B15 2EN, it should simply assign the record and not provide any suggestions. 

Is there a reason why you want the "query" instead of the "assignment"?

Former Member
0 Kudos

Hi Virginia,

Thank you for your response. Basically we are trying to replicate a functionality similar to QAS - For Example: If I were to search in QAS based on the same post code B15 2EN (from the above Example), then I would get 59 address - QAS provides the complete list of Addresses (including drill down of the Flats in an apartment) in one single call where as I am not able to get a full list of addresses when doing the same post code search using DQM/ Data Service - Please could you suggest if this is possible using DQM/ Data Services as I would like to avoid the multiple round trips?.

Thanks!

Regards,

Arun

virginia_hagen
Active Participant
0 Kudos

I'm not familiar with QAS and what QAS offers.  Is your goal to have an assigned address?  or to just pick data from a list?  Because the Global Address Cleanse (GAC)  transform is not a query tool it is an Assignment engine.  We have a query tool, but have been improving the functionality of the GAC transform to make the suggestion lists better so that queries don't need to be as that is not an assignment tool.  to make the GAC transform give you what you are looking for in a single list, you need to give it more data than just the postcode. its simply how the GAC transform works. 

Former Member
0 Kudos

Hi Virginia,

Thanks again for your prompt response. You had mentioned a query tool - Please could you let me know if this is part of data services/ DQM - is there any documentation around this?. Thanks.

Regards,

Arun

virginia_hagen
Active Participant
0 Kudos

There is a transform, Global Suggestion list, that is a query tool.  But we always recommend that customers use the Global Address Cleanse transform as that is the tool that will make the actual assignment.  Selecting from a list won't give you the features that the assignment engine can do to keep a user from having to select everything.  If you give GAC a house number and an address at minimum you can get the full assignment without any suggestions, where the engine will be able to enhance the input and add the locality, region, building, street.. (depending on the address) 

Former Member
0 Kudos

Hi Virginia,

Apologies for the late response. We have tried out the Global Suggestion list - I do understand your point related to the use of GAC - We are just testing out scenarios with the Global Suggestion List (by having a set of predefined fields of the address in the suggestion list) to see if this will be sufficient - Will respond to you within the next 2 days and close this loop with "Correct Answer".

Thanks again,
,

Arun.

santossh
Active Participant
0 Kudos

Hi Virginia,

As you mentioned that GAC performs assignments and to do that we need to pass the input data much closer to the actual context that we are expecting in the output.

I implemented a sample job(for UK directory) where I entered the info as below:

Street: Langley walk, City - Birmingham

Here, I was expecting that it should return me the suggestions only related to Langley walk in Birmingham. But, it returned me the suggestions for Langley walk, Langley road, Longley park, and many more...

Can you suggest me that - how do I get the suggestions only for the Langley walk(exact match) instead of the one mentioned above. Even let me know that whether it is possible/not.

Thanks in advance.

Santosh G.

virginia_hagen
Active Participant
0 Kudos

Its not possible to change the logic of the engine in this case.  The engine compares all possible combination of data in order to make the assignment.  The suggestion list generated is the options that it has to select from at the time the assignment is unable to be made.  One of the benefits of the engine is that you can spell a street name incorrectly and it can make the assignment and change it to the correct spelling.  What you are asking it to do, is to not give you the fuzzy matches its looking at.  You would need to log an enhancement to the Idea place if you want an option added so that the suggestion list only returned exact matches.  With the UK.. you will get a better result with the house number and the postcode.. As that is the least amount of information that will make an assignment in many cases. 

santossh
Active Participant
0 Kudos

Thanks Virginia...that was helpful !!!

Former Member
0 Kudos

Hi Virginia,

Thank you for your clarifications - It has been very helpful.

Regards,

Arun

Answers (0)