laravel-mysql-spatial
laravel-mysql-spatial copied to clipboard
fixing an error in the SpatialTrait
in order to exclude self from the distance calculation you were checking distance not be 0 but after trying it in production i found out that the SGBD can return a small number ex : 3e-17 to represent the distance to self so i fixed that.