Remove the postgis stuff
This commit is contained in:
parent
73fdd9a1ed
commit
3c3ad3e29d
10 changed files with 589 additions and 656 deletions
|
@ -32,7 +32,8 @@ class PlaceService
|
|||
$place = new Place();
|
||||
$place->name = $data['name'];
|
||||
$place->description = $data['description'];
|
||||
$place->location = new Point((float) $data['latitude'], (float) $data['longitude']);
|
||||
$place->latitude = $data['latitude'];
|
||||
$place->longitude = $data['longitude'];
|
||||
$place->save();
|
||||
|
||||
return $place;
|
||||
|
@ -62,10 +63,8 @@ class PlaceService
|
|||
$place = new Place();
|
||||
$place->name = Arr::get($checkin, 'properties.name.0');
|
||||
$place->external_urls = Arr::get($checkin, 'properties.url.0');
|
||||
$place->location = new Point(
|
||||
(float) Arr::get($checkin, 'properties.latitude.0'),
|
||||
(float) Arr::get($checkin, 'properties.longitude.0')
|
||||
);
|
||||
$place->latitude = Arr::get($checkin, 'properties.latitude.0');
|
||||
$place->longitude = Arr::get($checkin, 'properties.longitude.0');
|
||||
$place->save();
|
||||
|
||||
return $place;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue