Found out this was actually a few issues here and hopefully someone who experiences this issue will find this helpful.
First issue was that I was using a .Get.Where together in my LINQ query. When I removed the .Get and used the database context directly (I was using a generic repository) it returned the row(s) I expected.
I replaced
return _geoLocationRepository.Get.Where(obj => obj.GeoPoints.Intersects(geoPoint));
With
using(var context as DatabaseContext())
{
var results = new List<GeoFence>();
var query = context.GeoFences.Where(obj => obj.GeoPoints.Intersects(geoPoint));
//Have to iterate through the results (Only way I've found to access the data)
foreach(var fence in query)
{
results.Add(fence);
}
return results;
}
The other thing to note is that you need to use Long/Lat to create your POINT not Lat/Long (You will get an exception if you do Lat/Long).