laravel-geo
laravel-geo copied to clipboard
GeoSpatial integration on Laravel 5.2+ that supports MySQL and PostgreSQL.
## Using `ST_DISTANCE_SPHERE` ```sql SELECT ST_DISTANCE_SPHERE( POINT(-0.32170480372414134, 35.85398240387264), POINT(-0.6368148560996869, 35.70035747269707) ) -- 33164.40908920633 ``` ## Using the package used formula ```sql SELECT ( 6378137 * ACOS( COS(RADIANS(-0.32170480372414134)) * COS(RADIANS(-0.6368148560996869)) *...
Hi i have problem, Call to undefined method Phaza\LaravelPostgis\PostgisConnection::fromRawToWKB() my data is: 0101000020CF7F00000000000004131A410000000062865D41
fix method access level for lumen 5.6
I'm trying to implement the fromArray functionality for GeometryCollection, but with this function ``` public static function fromArray(array $items) { $parsed = array_map(function($p){ if( !is_array($p) or sizeof($p) != 2) throw...
Very helpful when I need to use with ex. `User` class and extends `Authenticatable` or similar use case
Hello! Thanks for your work on this package! This PR drops references to the DB facade. I ran into an issue with this on a Lumen project that doesn't use...