malhal / Laravel-Geographical

Easily add longitude and latitude columns to your records and use inherited functionality for calculating distances
MIT License
283 stars 49 forks source link

Distance is incorrect? #8

Closed jake5253 closed 6 years ago

jake5253 commented 6 years ago

Using $query = User::geofence($myLatitude, $myLongitude, 0, 1000)->get() results that I am 5.8987221219523E-5 away from myself. Shouldn't it be 0 since I'm passing the exact lat/long it's comparing to?

jake5253 commented 6 years ago

While I realize this is only a few feet at best,