How to Find the Nearest Bar Using .NET and PostgreSQL
summary
Covers using .NET and PostgreSQL to find nearest points with geodata, applying the k-NN algorithm for both Cartesian coordinates and geographic (Earth) coordinates using the PostGIS extension. Explains SRID and EPSG concepts and shows .NET examples using EF Core and LINQ to DB.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 3:07PostgreSQL for geospatial search
- 5:11KNN algorithm in PostgreSQL
- 10:49GIST index for KNN
- 11:10Data setup
- 13:16ORM challenges
- 16:27Why talk continues
- 17:31Earth shape and coordinates
- 21:50PostGIS setup
- 29:01Geometry vs geography
- 33:57Coordinate systems for accuracy
- 37:31Optimizing PostGIS index
- 40:15NetTopologySuite for .NET
- 41:41EF Core implementation
- 43:46LINQ to DB implementation
- 45:54Summary
- 48:06Q&A
