src/Entities/Addresses/NamedCoordinatedAddress.php
public function jsonSerialize()
    {
        $json = parent::jsonSerialize();

        $json['name'] = $this->getName();
        $json['latitude'] = $this->getCoordinates()->getLatitude();
        $json['longitude'] = $this->getCoordinates()->getLongitude();

        return $json;
    }
public function jsonSerialize()
    {
        $json = parent::jsonSerialize();

        $json['name'] = $this->getName();
        $json['latitude'] = $this->getCoordinates()->getLatitude();
        $json['longitude'] = $this->getCoordinates()->getLongitude();

        return $json;
    }
Specify data which should be serialized to JSON