Laravel package to easily work with MySQL Spatial Data Types and MySQL Spatial Functions.
Please check the documentation for your MySQL version. MySQL’s Extension for Spatial Data was added in MySQL 5.5 but many Spatial Functions were changed in 5.6 and 5.7.
Versions
1.x.x: MySQL 5.6 (also supports MySQL 5.5 but not all spatial analysis functions)2.x.x: MySQL 5.7 and 8.0 (Laravel version < 8.0)3.x.x: MySQL 8.0 with SRID support (Laravel version < 8.0)4.x.x: MySQL 8.0 with SRID support (Laravel 8+) [Current branch]5.x.x: MySQL 5.7 and 8.0 (Laravel 8+)
This package also works with MariaDB. Please refer to the MySQL/MariaDB Spatial Support Matrix for compatibility.