Laravel-Geographical
Laravel-Geographical copied to clipboard
Easily add longitude and latitude columns to your records and use inherited functionality for calculating distances
Publish commit with laravel 9 support on composer packages
Added support for joined tables, such as in my use case where I have a restaurant model with multiple locations, and want to query against the restaurants model with the...
Hello! When I call scope geofence I get long numbers of coordinates and distances. For example: The database contains the coordinates: latitude 57.161948 longitude 50.316044 In response, I get latitude...
I follow the steps what you said in read me. I am not sure about it is a right way I did though. Is there any solution? Can I get...
It doesn't work with Postgres. It would be great if it was mentioned or that support would be added in the future.
When using query builders and eloquent relations to filter the data, the attribute distance cannot be retrieved, making it impossible to order by distance. For example, a Book belongs to...
Laravel 7 support? I believe it is only needed to change the composer.json to enable the installation.
Laravel Framework 5.8.14 PHP 7.2.11 10.2.10-MariaDB ``` $ads = Ads::geofence($json->lat, $json->lon, 0, $distance); $ads = $ads->Paginate(25); ``` `SQLSTATE[42S22]: Column not found: 1054 Unknown column 'distance' in 'having clause' (SQL: select...