I have a database table of zipcodes with their Lat/Longs. I’m trying to find some code that shows a query that takes a zipcode and x miles and then return set of results that include all the zipcodes that are within that radius (precision is not very important – as long as it’s close).
Can this be done with a Linq to SQL query so I don’t have to use a Stored Procedure?
I figured it out and it actually wasn’t all that hard once i found the equation.