Last post Mar 02, 2018 02:30 AM by KathyW
Feb 28, 2018 06:13 PM|SSpost|LINK
I am looking to perform street, city, zip code validation in my MVC application.
What 3rd party tools can I use. Based on your experience can you suggest some api that was free and worked for you as well?
Feb 28, 2018 09:14 PM|ryanbesko|LINK
Mar 01, 2018 02:43 AM|KathyW|LINK
"The Address Validation APIs can be used in conjunction with USPS SHIPPING OR MAILING SERVICES ONLY. " If that is the usage the original poster intends, this api is appropriate. For anything else - other shipping methods, for example, or just address
validation with nothing being shipped, it would not be a valid use.
sspost - can you tell us what the purpose of the validation is?
Mar 01, 2018 07:05 AM|Cathy Zou|LINK
Here's a free and sort of "outside the box" way to do it. Not 100% perfect, but it should reject blatantly non-existent addresses.
Submit the entire address to Google's geocoding web service. This service attempts to return the exact coordinates of the location you feed it, i.e. latitude
In my experience if the address is invalid you will get a result of 602 from the service. There's definitely a possibility of false positives or false negatives, but used in conjunction with other consistency checks it could be useful.
(Yahoo's geocoding web service, on the other hand, will return the coordinates of the center of the town if the town exists but the rest of the address is bogus. Potentially
useful as long as you pay close attention to the "precision" field in the result).
Mar 01, 2018 04:30 PM|SSpost|LINK
I want to just validate address and not ship or anything.
I researched into USPS and looks like its used only for shipping and mailing, hence my question here with .net MVC forms, what Can I used to just validate address
Mar 01, 2018 04:55 PM|EnenDaveyBoy|LINK
it may be easier to just enforce a postcode/zipcode lookup? then the address is validated by default.
Mar 01, 2018 05:02 PM|SSpost|LINK
How do I validate/lookup zipcode ?
Mar 02, 2018 01:51 AM|bruce (sqlwork.com)|LINK
the us post office is the best free if you can follow the rules. for third party try:
note: generally you want a web service, as local libraries require installing the monthly updates of the CRIS data from the post office.
Mar 02, 2018 02:30 AM|KathyW|LINK
Have you looked at Cathy Zou's suggestion?