Re: iPhone: validate a NSString for US zipcode
Re: iPhone: validate a NSString for US zipcode
- Subject: Re: iPhone: validate a NSString for US zipcode
- From: Keary Suska <email@hidden>
- Date: Thu, 7 Jan 2010 10:30:17 -0700
On Jan 7, 2010, at 9:53 AM, Eric E. Dolecki wrote:
> I don't care about the city, just that the zip code will work. On an iPhone
> testing against an array of 42,305 values... could that be pretty quick?
> Seems like a large set to go through looking. I'm sending the value to a
> webservice to return weather data.
What do you mean, "will work"? That the weather service will accept it? Does the service respond that the zip code isn't usable, for whatever reason?
Otherwise, searching 42k+ will be very quick if you put it into a sqllite database. But then you will have to maintain the database, continually update it, and possibly correct it.
My 2ยข
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden