Smarty

When to use strict vs enhanced matching in your address API

When to use strict vs enhanced matching in your address API
Andrew Townsend
Andrew Townsend
 • 
May 20, 2024
Tags

In our recent webinar, we invited Easton Gibson, one of our US Street API software engineers, to discuss key features of address validation and give insights into the functionalities of both strict and enhanced modes.

Understanding strict mode

Strict mode is precisely what it sounds like—it rigorously validates addresses against the official USPS database, ensuring that only fully accurate, postal-verified addresses are accepted. This mode is typically used for operations requiring high precision, such as legal or financial document dispatch.

For example, if you enter a known address into Smarty's address tools with strict mode, you'll see that it processes and standardizes address data, rejecting any entry that doesn't perfectly match USPS records.

However, while most people use strict mode for its reliability in confirming that an address is recognized by the USPS, its rigidity creates problems.

Introduction to enhanced mode

Enhanced mode is better than strict mode because it uses fuzzy logic, machine learning, and generally more information to provide a holistic story for each address. This mode is designed to capture and validate addresses that might not be part of the USPS database. These are known as non-postal addresses and include things such as newer developments or rural locations.

Enhanced mode’s ability to handle non-postal addresses is a significant benefit. For instance, it can identify and validate non-postal addresses and correct common address mistakes, giving you workable information instead of just an unknown result.

Enhanced mode provides everything strict mode will, but with more information about why an address does or doesn’t match. Instead of giving a “yes/no” response, it may give a “yes, if” response or “no, because.”

You can play with the enhanced mode results on the US Street API demo page.

FAQ for enhanced mode

What are the main sources for non-postal addresses in Smarty’s database?
The sources for non-postal addresses include several proprietary datasets that Smarty™ has access to, which are part of our "secret sauce." For detailed information, you can reach out to an account executive.

If I want results only from USPS addresses, should I use enhanced mode and filter out non-postal matches, or stick with strict mode?
Using enhanced mode is recommended even if you require only USPS addresses. Enhanced mode's aggressive matching strategy means it can handle typographical errors and other common discrepancies better than strict mode. Results that are non-postal will be clearly indicated, allowing easy filtering while still benefiting from enhanced mode's robust matching capabilities.

How does enhanced mode handle inputs with significant errors or typos, especially in critical components like the street name or number?
Enhanced mode is designed to be more forgiving of errors, including significant misspellings. It uses sophisticated algorithms to interpret and correct errors where possible, differentiating it from strict mode, which requires exact matches. However, there are limits; if an input is too far off from any real address data, even enhanced mode may not be able to make a correct match.

If you'd like to view the full webinar recording and the demos given, you can view that here:

 

Subscribe to our blog!
Learn more about RSS feeds here.
rss feed iconSubscribe Now
Read our recent posts
Black Friday ready: Real-time ecommerce address verification
Arrow Icon
Don’t panic. We’re not telling you to set up your Christmas lights in July or tune into your favorite holiday station. We’re not crazy here (mostly). But also, do your thang. What we ARE saying is that if you’re in ecommerce, you know just as well as Smarty does that you have to start prepping for those big holidays months in advance. Today is as good as any to see how setting up the right real-time address capabilities, like suggesting verified customer addresses as they type, can get your business in the black on Black Friday.
Address Autocomplete API JavaScript SDK tutorial
Arrow Icon
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 APIJavaScript SDK magic made easyIntegrating 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.
How Smarty™ sidestepped the global IT outage with 100% uptime
Arrow Icon
A recent defective update from CrowdStrike, a leading cybersecurity provider, caused a global outage affecting millions of Windows systems. Oops. The faulty update to CrowdStrike's Falcon software, intended for endpoint detection and response, led to the infamous "blue screen of death" (BSOD) and rendered many systems non-bootable. The widespread disruption primarily impacted large organizations reliant on CrowdStrike's services, sparing home PCs and systems running on Mac and Linux. Like the rest of the world, Smarty employees were also impacted.