Search code examples
user-inputstreet-address

Do you break up addresses into street / city / state / zip?


My current app needs to store address information for a user. I'm currently debating whether to use the customary street address / city / state / zip textboxes and dropdowns or to go with Google's method of simply having everything on one line. Any thoughts on the pros/cons of storing address information in either of these manners?


Solution

  • You should split it up. It will make it far easier to do reporting down the road. What happens if you want to pull up all the residents of a state or zip code, or city? If you use all one field, you will be stuck and wish you had split it up.

    Also, users will forget to put in all the information you need if you don't prompt them for it.