Remove the postgis stuff

This commit is contained in:
Jonny Barnes 2020-10-16 20:45:07 +01:00
parent 73fdd9a1ed
commit 3c3ad3e29d
10 changed files with 589 additions and 656 deletions

View file

@ -340,7 +340,7 @@ class Note extends Model
public function getLatitudeAttribute(): ?float
{
if ($this->place !== null) {
return $this->place->location->getLat();
return $this->place->latitude;
}
if ($this->location !== null) {
$pieces = explode(':', $this->location);
@ -360,7 +360,7 @@ class Note extends Model
public function getLongitudeAttribute(): ?float
{
if ($this->place !== null) {
return $this->place->location->getLng();
return $this->place->longitude;
}
if ($this->location !== null) {
$pieces = explode(':', $this->location);