|
asp1: sounds like an interesting solution. Mostly, where you see this sort of functionality on a website they use a database of rough geographical locations for the ZIP / postal code and a bit of basic geometry, though some of them are even smarter and use route-planning tricks behind the scenes to find a distance that isn't just as the crow flies.
asp1's suggestion does sound like a nice, efficient, simple, tidy hack that would often do just as well though. You might be interested to know it should work equally well with UK postal codes, despite their completely different looking format. I wonder how many nations' area designations this same trick would work for?
__________________
"I'm not a genius. Why do I have to suffer?"
|