New 42-day free trial
Smarty

Address Autocomplete API JavaScript SDK tutorial

Address Autocomplete API JavaScript SDK webinar graphic - man sitting in a hammock as he sets up an autocomplete API
Andrew Townsend
Andrew Townsend
 • 
July 24, 2024
Tags

Webinar recap: Ready to take your web forms from "meh" to "wow"?

In our recent webinar, we gave tips and tricks and demonstrated live coding magic.

The essentials of Smarty's address autocomplete API

JavaScript SDK magic made easy

Integrating Smarty’s Address Autocomplete API using our JavaScript SDK is a breeze. Smarty also has SDKs for .NET, Android, Go, iOS, Java, PHP, Python, Ruby, and Rust, making setting up client credentials, building functions, and handling address lookups look like child’s play.

Customize to your heart’s content

Smarty’s Autocomplete Pro API is your new best friend. You can easily customize everything in how your address data is presented to your user, including:

Additional address autocomplete enhancements

Geolocation awesomeness

We revealed the power of geolocation, showing how to use IP addresses to make suggestions more relevant. For example, you can make autocomplete prioritize suggested addresses near the user's IP location.

Address validation wizardry

Dealing with secondary addresses like apartments or units? No problem! Smarty’s APIs handle it all. Combine autocomplete tools with the US Street API for even more detailed data about each address. It’s like having an address data superpower!

Tips and tricks from the pros

Optimize lookups

Pro tip: use an if statement to reduce the number of lookups you spend per address. Check the length of the address input before calling the API to save on unnecessary lookups and improve efficiency.

Handle new addresses

Got new buildings with units not yet in the database? No sweat! Use the base address from any autocomplete tool and let users add their unit numbers manually. Combine with the US Street API for full validation.

Ready to try Smarty’s autocomplete?

You can get a free trial with 1,000 lookups for testing. Need more testing lookups? Just ask, and Smarty will hook you up!

View the full webinar recording for more details:

Subscribe to our blog!
Learn more about RSS feeds here.
rss feed icon
Subscribe Now
Read our recent posts
You always need Smarty, unless...
Arrow Icon
We’ll be honest: there are some rare, creative, and oddly inspiring scenarios in which traditional address validation tools—like Smarty—might not be top of mind. Take Gary, for instance. He runs a mail-order sourdough bakery and believes address typos give his shipping process a “personal touch. ” His customers now expect their loaves to go on postal pilgrimages, complete with handwritten notes and breadcrumb trails. Literally. Or Eleanor, who’s lived in the same town for 62 years, ships packages with descriptions like “the blue house with the tire swing near the old Peterson farm.
Why address verification is the necessary complement to autocomplete
Arrow Icon
Address autocomplete is a powerful tool for improving form completions and ensuring users select real, deliverable addresses at entry. However, to maintain long-term data integrity and enhance address-related insights, address verification is a necessary complement. Here’s why:1. Gain up to 55 points of metadata per verified addressAutocomplete provides real-time address suggestions, while address verification appends additional metadata. Address verification enhances each address with up to 55 points of data, such as:ZIP-9 level accuracy geocoordinates (rooftop accuracy also available)ZIP+4 CodesResidential Delivery Indicator (RDI) to identify residential vs.
Property data fuels a Smarty-er search for Sasquatch
Arrow Icon
Bigfoot. Sasquatch. Ol’ Filthy Albert. No matter what you call him, you know who we’re talking about: the hairy giant cryptid who haunts our collective imagination and, according to about 13% of the US population, wanders the American wilderness. The traditional perception of Sasquatch is that of a solitary creature whose run-ins with people are the unavoidable consequence of human development and exploration. If recent sightings are any indication, it seems the legendary creature may have more on their mind than just staying hidden.

Ready to get started?