Remove the postgis stuff
This commit is contained in:
parent
73fdd9a1ed
commit
3c3ad3e29d
10 changed files with 589 additions and 656 deletions
|
@ -142,7 +142,10 @@ class MicropubController extends Controller
|
|||
$matches
|
||||
);
|
||||
$distance = (count($matches[0]) == 3) ? 100 * $matches[0][2] : 1000;
|
||||
$places = Place::near(new Point($matches[0][0], $matches[0][1]))->get();
|
||||
$places = Place::near(
|
||||
(object) ['latitude' => $matches[0][0], 'longitude' => $matches[0][1]],
|
||||
$distance
|
||||
)->get();
|
||||
|
||||
return response()->json([
|
||||
'response' => 'places',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue