Think about it this way: I register for your website under the email address . That’s probably going to bounce off of the illustrious mail daemon, but the formatting is fine; it’s a valid email address.To fix this problem, you implement an activation system where, after registering, I am sent an email with a link I must click.Learn how we used Google’s Geocoding service to solve this problem.There are many commercial providers for addresses, however not all of them provide a world-wide address base and the Kickz shop is delivering world-wide.In the case of the Kickz online shop, we faced exactly this problem.
Submit the entire address to Google's geocoding web service.`cb`: `function(err, valid Addresses, inexact Matches, geocoding Response)` `err` - something went wrong calling the google api `valid Addresses` - list of Address objects.These are exact matches to your input, and will have proper spelling, caps etc.It turned out that the best value for money would be to use Google’s Geocoding web service.Geocoding is the process of converting addresses into geographic coordinates, i.e. However, as the response from Google includes not only the longitude/latitude data but also further address suggestions, this service can also be easily used to present refined/suggested addresses to the user. So our basic idea of the service usage was to request exact coordinates and refined addresses (suggestions) for a given address.From an input address the lib will return to you a valid address with correct spelling and lat/lon coords, and/or a set of inexact matches that can be used to drive a 'did you mean? Currently geared towards North American Addresses but works with all languages. Address object or map with 'street', 'city', 'state', 'country' keys, or string address `address Type` - validator.match.[key] where key is: street Address, route, city, state, country, unknown This tells the validator the type of an address you are expecting to validate.default is `validator.match.street Address` (you may omit this arg).This is to verify that I actually own that email address before my account is activated.At this point, why keep parsing email addresses for their format?(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).