Mander
Mander

Reputation: 9

Search by zipcode and show data within specific radius?

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

Answers (1)

Martin Buberl
Martin Buberl

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

Related Questions