grimzy/laravel-mysql-spatial

Question: Calculate the distance of a polyline

moroccan-webdev opened this issue · 0 comments

Hello there,
I wanted to know if there is a method within this package that calculates the distance of a stored polyline.
Say for instance I have a route object that holds a polyline data set inside a "path property"
$route = Route::findOrFail(1);
$path = $route->path;
//now path is a polyline and I wanted to calculate its distance.

Thanks in advance