attributes['latitude'] = static::convertDegreeToDecimal($value, true); } /** * Get decimal shop's longitude and convert it to sexagesimal coordinate. * * @param float $value Decimal coordinate. * @return string $sexagesimalValue Sexagesimal coordinate */ public function getLongitudeAttribute(float $value) { return static::convertDecimalToDegree($value, false); } /** * Set decimal shop's longitude from sexagesimal coordinate. * * @param string $value Sexagesimal coordinate. * @return void */ public function setLongitudeAttribute(string $value): void { $this->attributes['longitude'] = static::convertDegreeToDecimal($value, false); } }