|jQuery UI and Auto-Complete Address Entry|
|Written by Ian Elliot|
|Tuesday, 18 April 2017|
Page 3 of 3
ZIP Codes & The World
You can easily modify the program to make use of other autocomplete options. Usually all you have to do is modify the URL used in the request and perhaps modify the inputs in the query string. For example, if you want to find an address using a ZIP code the URL changes to:
and the query string changes to:
You can try this out without any other changes as the data returned is the same.
If you want to change to looking up addresses worldwide then it is almost as easy. You have to change the URL and supply a country code to specify the country being searched and you also have to modify the handling of the suggested addresses. The possible format of world addresses requires a more general approach and there are fields labeled Address1 though 8 and a single Address field holding a formatted address. If you don't specify a country code then the USA is the default so an alternative way to lookup an address in the USA is to use the URL:
and the query string is the same as the original:
The success function becomes:
To find addresses in a particular country, add an ISO country code. For example for a UK address the query string would be:
No other changes are needed.
Saving Time, Saving Effort, Eliminating Mistakes
We have used Express Entry to save user's time and effort - and hopefully retain more users and potential customers than otherwise. Express Entry also avoids the problems so often caused by typing errors when entering addresses. With increasing automation and reliance on systems that cannot easily respond to "obvious" human error, incorporation data verification is vital and here we have seen how jQuery's autocomplete feature and Melissa Data's Express Entry make it easy for the developer to cope with address data
Melissa Data has a range of data entry APIs to ensure clean data and eliminate duplicate data, see the full range at the Melissa Wiki.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Tuesday, 18 April 2017 )|