Query nearby locations in table in ASP.NET Core 2 and Entity Framework Core 2
I’m trying to make a query where I can find all locations in my SQL database within (lets say 50 miles) of a given Longitude and Latitude points.
I’m trying to make a query where I can find all locations in my SQL database within (lets say 50 miles) of a given Longitude and Latitude points.
I tried implementing this formula: http://andrew.hedges.name/experiments/haversine/
The aplet does good for the two points I am testing: