Calculate distance between Zip Codes… AND users.
问题 This is more of a challenge question than something I urgently need, so don\'t spend all day on it guys. I built a dating site (long gone) back in 2000 or so, and one of the challenges was calculating the distance between users so we could present your \"matches\" within an X mile radius. To just state the problem, given the following database schema (roughly): USER TABLE UserId UserName ZipCode ZIPCODE TABLE ZipCode Latitude Longitude With USER and ZIPCODE being joined on USER.ZipCode =