mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
Compute nearby-brewery distance in SQL instead of client-side Haversine, and add the spatial index it relies on.
This commit is contained in:
@@ -2,6 +2,8 @@ namespace Domain.Entities;
|
||||
|
||||
public sealed record CoordinateData(double Latitude, double Longitude);
|
||||
|
||||
/// <summary>The distance, as computed by the database, from a query's origin point to a brewery.</summary>
|
||||
public sealed record DistanceInformation(CoordinateData From, double DistanceMetres);
|
||||
|
||||
public sealed class BreweryPostLocation
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user