Addresslookup API

0
Hi  I am new to Mendix. I am trying to use Address Lookup API to search some valid US addresses. Anyone how do I configure it to be able to search USA addresses? Thanks Ping
asked
5 answers
4

Hi Ping,

It's not clear to me which API you want to use for this?

But edq, https://www.edq.com/address-verification-api/ offers both REST and SOAP options and I can imagine other parties do as well or at least one of them, so if it's a REST service then here an "how to" consuming rest:

https://docs.mendix.com/howto/integration/consume-a-rest-service

If it's SOAP, here an how to with using Consumed Web Services:

https://docs.mendix.com/howto/integration/consume-a-simple-web-service

https://docs.mendix.com/refguide/consumed-web-services

Regards,

answered
1

Hi Ping Gu,
The module in the appstore for this is 'Address lookup API'. That is the one you mean? It is a paid service. Seems badly documented and says it is especially useful on a POC. And it refers questions to this forum. That is sort of saying: "Don't come bothering me". So no support from the creator. Don't expect it to work out of the box, but do follow the configuration as specified in the Documentation and tell us where you get stuck.

 

answered
1

Hi Ping,

If you are looking to  validate US addresses, check out the US Postal Service address verification api

 

https://www.usps.com/business/web-tools-apis/welcome.htm

answered
0

I ended up not using this API as it only works for UK addresses.

However, I am trying to call a web service from third party to do address validation. 

My question now is: if in a input box, I am typing in an address, then it triggers a microflow to return a list of possible matching addresses. How do I show the list of addresses in a drop down?

Thanks

answered
0

Ping,

To answer your second question, create a non persistent entity to hold the list of possible addresses.  You can then create one object of this entity for each possible address and associate these addresses to your persistent address object.  With this done you can display the possible addresses on a page by retrieving them via association.

 

Hope that helps,

Mike

answered