views:

36

answers:

1

We are developing our website in django framework and with python. currently we are looking for an api/a tool to validate the physical addres the user enters. It doesn't need to be vey sophisticated. We just need to avoid spam registrations. For this step, we need to verify if country, state, city, and zipcode are belong to each other. For instance, Berkeley as a city with Zipcode 94704 is not in NY state, etc. Any thoughts?

+1  A: 

You could probably use a GeoCoding service (like Google's) to verify that an address exists.

Matthew J Morrison
thanks Matthew. does it give us this ability to test if a zipcode belongs to a city or a state? i'm trying to avoid useing coordinators!
Sara
I assume, that if you pass an invalid zip code the GeoCoding service would not find the address.
Matthew J Morrison