Reputation: 9
Hi I have a database of the US, CANADA zipcodes with latitude and longitude. I would like to implement search to show listings within specified radius. How can it be done with Linq to Entity, C#
Thank you for examples
Upvotes: 0
Views: 2511
Reputation: 47114
This CodeProject article describes a method to calculate the distance between two zip codes and find all other zip codes within a radius of X miles of a specified zip code:
In the article is an Access database used but what you're going to use as your ORM and database isn't really the tricky thing here.
Upvotes: 2