Spatial Data in Entity Framework 5.0
In Entity Framework 5.0 spatial data types are supported so now we can create Linq queries to query nearby locations, calculate distances and check if locations intersect with an area. This articles demonstrates how to insert and update locations with latitude and longitude coordinates and how to query them in different ways.
- Setup of demo project
- Inserting and updating locations
- Calculating distances to a given location
- Calculating distances to a given route
- Locations that intersect with an area