New 42 day free trial
Smarty

An advanced look at US Autocomplete Pro API

WEBINAR RECAP: We hosted a webinar about Smarty’s US Autocomplete Pro API and how it differs from other autocomplete tools.
Andrew Townsend
Andrew Townsend
 • 
June 28, 2022
Tags

Improving address form completion rates—whether in a shopping cart, request for quote, or other form—can be a sinch if you’re using an address autocomplete tool. Not sure what that is? When you see an address line on a form and think “oh shoot this is going to take a minute” and then it fills it in after only a few keystrokes, that’s address autocomplete.

And no, not all address autocomplete tools are created equal.

Some check against their own address database only that is not frequently maintained. Some are only checked against the United States Postal Service database so they do not include non-postal addresses. And most do not have any sort of customization options when it comes to utilizing their APIs.

Smarty’s US Autocomplete Pro API checks against our incredibly large database of over 210+ million USPS addresses in addition to over 20 million non-postal addresses, and it is highly customizable.

Customizing for geolocation

One typical use for US Autocomplete is to assist an end user in entering their own address. In this case, you likely want to provide suggestions that are close to the user's location. The Geolocation feature, which is turned on by default, does just that. It uses data that maps the user's IP address to a city or surrounding area. It then places their city and state into the prefer_cities field.

Customizing for preferences

Another use for Autocomplete is for call centers where you may want to prefer suggestions that are in specific cities, states, or ZIP Codes. When set, these results will occupy the top percentage (prefer_ration) of the results.

Examples:

  • prefer_cities=SEATTLE, REDMOND,WA; RENO, NV
  • prefer_states=CO; OK
  • prefer_zip_codes=84660; 90210&prefer_geolocation=none

Customizing with include filters

Sometimes, you want to limit results to only specific cities, states, or ZIP Codes. This is different from preferences, which could provide suggestions outside your preference areas. Filters will only show suggestions that match the filter. Note that there are some keywords you can use for states that will filter on the 48 contiguous states (including DC), which exclude territories, Alaska and Hawaii. Or all states which exclude just the territories.

As with preferences, if you use the ZIP Code filter, you cannot use any other preference or filter.

Customizing with exclude filters

If you need to exclude specific states from your results, you can use this filter. It cannot be used with any other filter or the geolocation preference, but it works with other preference settings.

Customizing the source

US Autocomplete Pro has included non-postal addresses for a little over 6 months. Non-postal addresses are those that USPS won’t deliver to, but are valid physical addresses. By default, only postal addresses will be returned.

Set this to “all” if you also want to return non-postal addresses. You will know if a result is a non-postal address if it contains the source field with the value of “other.”

Customizing a selected secondary

This parameter gets it name from when a user selects an address to drill down on a particular secondary. This is the most complicated one of the options discussed in the webinar, but I’ll do my best to summarize.

If the address submitted is an apartment building with 100 units, this will dictate how many of those units there are and if the user can drill down to an exact unit. You can learn more about it in the recording below, beginning at 18:40.

View the webinar recording

This is just a brief overview of what was covered. You can view the full 26 minute video below.

Subscribe to our blog!
Learn more about RSS feeds here.
rss feed icon
Subscribe Now
Read our recent posts
Inside Smarty® - Irina O'hara
Arrow Icon
Irina O'Hara is one of our uniquely clever, expert frontend developers. She’s immensely talented and has had a vital impact on our website redesign. When it came time to spotlight her, Irina was a joy to sit down with and get to know a little better. To get to the basics, she writes code and creates awesome websites, and she’s darn good at both. BackgroundIrina was born and raised in St. Petersburg, Russia. However, she wasn't born a development expert and had other aspirations from the start.
How I reduced my returned mail from 27% to 1% using address autocomplete
Arrow Icon
The following is based on a true story. Some of the names and relationships have been changed to protect the anonymity of individuals and companies. However, the numbers are 100% accurate. In 2023, I wanted to mail some really fancy cards to 165 businesses. I collected their addresses by asking for them or finding them in their online listing and collected them all in a neat little row. Then, I went a step further and ran these addresses through Smarty's bulk address validation tool. Everything was set and perfect.
The ROI of accurate healthcare address validation: Stop hemorrhaging red on your financial statements
Arrow Icon
In healthcare, the havoc an inaccurate address can wreak on your financial results is significant in more ways than one, and the boost in overall profitability from maintaining a clean address database is equally worth noting. Accurate healthcare address validation improves operational efficiency, patient engagement, and compliance and builds revenue to heights that couldn’t be met without it. Here’s what we’ll be covering:Healthcare address validation pros and consCon: Increased claim denials and organizational costsPro: Reduced claim denials and reprocessing costsCon: Increasing patient match error ratesPro: Improved patient matching and data qualityCon: Complicated billing and collections processesPro: Streamlined billing and collections capabilitiesCon: Exposure to legal liabilitiesPro: Enhanced regulatory compliance and risk aversionCon: Misplaced market strategyPro: Data-driven decision-making and market insightsEpilogue: Avoiding the pain (see our summarized financial savings)Healthcare address validation pros and consThere’s a pro and a con associated with having (or not having 🫣) accurate address data in your healthcare systems.

Ready to get started?