× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm working with the new UPS Street Level Address Validation API. We've used the old one for years, but it is reaching end of life.

The new REST API is returning a JSON response that contains the following:

"ValidAddressIndicator": "string",
"AmbiguousAddressIndicator": "string",
"NoCandidatesIndicator": "string",

The documentation is lacking... but with the testing I've done it seems like one of the 3 elements will be present (the "string" is always empty).

From the Documentation:
ValidAddressIndicator string <= 1 Indicates query found a valid match.
AmbiguousAddressIndicator string <= 1 Indicates query could not find exact match. Candidate list follows.
NoCandidatesIndicator string <= 1 No Candidate found.

I know I can add "num_ValidAddressIndicator", "num_AmbiguousAddressIndicator", etc. Then check the value to see if the element was sent.

Just curious if there's another way that I've not considered.

TIA,
Greg
[Logo]<https://www.totalbizfulfillment.com/> Greg Wilburn
Director of IT
301.895.3792 ext. 1231
301.895.3895 direct
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
1 Corporate Dr
Grantsville, MD 21536
www.totalbizfulfillment.com<http://www.totalbizfulfillment.com>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.